sub_80173E0

This commit is contained in:
PikalaxALT
2019-03-28 09:59:08 -04:00
parent 9538855d9a
commit 963dcfb84d
2 changed files with 65 additions and 226 deletions

View File

@@ -5,220 +5,6 @@
.text
thumb_func_start sub_80173E0
sub_80173E0: @ 80173E0
push {r4,r5,lr}
sub sp, 0x10
ldr r5, [sp, 0x1C]
ldr r4, [sp, 0x20]
lsls r3, 24
lsrs r3, 24
lsls r5, 24
lsrs r5, 24
lsls r4, 24
lsrs r4, 24
str r2, [sp]
mov r2, sp
strb r0, [r2, 0x4]
mov r0, sp
strb r1, [r0, 0x5]
strb r3, [r0, 0x6]
strb r5, [r0, 0x7]
strb r3, [r0, 0x8]
strb r5, [r0, 0x9]
ldrb r1, [r2, 0xC]
movs r0, 0x10
negs r0, r0
ands r0, r1
strb r0, [r2, 0xC]
ldr r2, =gTextFlags
ldrb r1, [r2]
movs r0, 0x3
negs r0, r0
ands r0, r1
strb r0, [r2]
cmp r4, 0x6
bls _08017422
b _0801756E
_08017422:
lsls r0, r4, 2
ldr r1, =_08017434
adds r0, r1
ldr r0, [r0]
mov pc, r0
.pool
.align 2, 0
_08017434:
.4byte _08017450
.4byte _0801747C
.4byte _080174A8
.4byte _080174D4
.4byte _08017500
.4byte _0801752C
.4byte _08017544
_08017450:
mov r0, sp
movs r1, 0
strb r1, [r0, 0xA]
strb r1, [r0, 0xB]
mov r2, sp
ldrb r1, [r2, 0xC]
movs r3, 0xF
adds r0, r3, 0
ands r0, r1
movs r1, 0x20
orrs r0, r1
strb r0, [r2, 0xC]
ldrb r1, [r2, 0xD]
movs r0, 0x10
negs r0, r0
ands r0, r1
movs r1, 0x1
orrs r0, r1
strb r0, [r2, 0xD]
ands r0, r3
movs r1, 0x30
b _0801756A
_0801747C:
mov r0, sp
movs r1, 0
strb r1, [r0, 0xA]
strb r1, [r0, 0xB]
mov r2, sp
ldrb r1, [r2, 0xC]
movs r3, 0xF
adds r0, r3, 0
ands r0, r1
movs r1, 0x40
orrs r0, r1
strb r0, [r2, 0xC]
ldrb r1, [r2, 0xD]
movs r0, 0x10
negs r0, r0
ands r0, r1
movs r1, 0x1
orrs r0, r1
strb r0, [r2, 0xD]
ands r0, r3
movs r1, 0x50
b _0801756A
_080174A8:
mov r0, sp
movs r1, 0
strb r1, [r0, 0xA]
strb r1, [r0, 0xB]
mov r2, sp
ldrb r1, [r2, 0xC]
movs r3, 0xF
adds r0, r3, 0
ands r0, r1
movs r1, 0x60
orrs r0, r1
strb r0, [r2, 0xC]
ldrb r1, [r2, 0xD]
movs r0, 0x10
negs r0, r0
ands r0, r1
movs r1, 0x1
orrs r0, r1
strb r0, [r2, 0xD]
ands r0, r3
movs r1, 0x70
b _0801756A
_080174D4:
mov r0, sp
movs r1, 0
strb r1, [r0, 0xA]
strb r1, [r0, 0xB]
mov r2, sp
ldrb r1, [r2, 0xC]
movs r3, 0xF
adds r0, r3, 0
ands r0, r1
movs r1, 0x10
orrs r0, r1
strb r0, [r2, 0xC]
ldrb r1, [r2, 0xD]
movs r0, 0x10
negs r0, r0
ands r0, r1
movs r1, 0x1
orrs r0, r1
strb r0, [r2, 0xD]
ands r0, r3
movs r1, 0x30
b _0801756A
_08017500:
mov r0, sp
movs r1, 0
strb r1, [r0, 0xA]
strb r1, [r0, 0xB]
mov r2, sp
ldrb r1, [r2, 0xC]
movs r3, 0xF
adds r0, r3, 0
ands r0, r1
movs r1, 0x10
orrs r0, r1
strb r0, [r2, 0xC]
ldrb r1, [r2, 0xD]
movs r0, 0x10
negs r0, r0
ands r0, r1
movs r1, 0x2
orrs r0, r1
strb r0, [r2, 0xD]
ands r0, r3
movs r1, 0x30
b _0801756A
_0801752C:
mov r0, sp
movs r1, 0
strb r1, [r0, 0xA]
strb r1, [r0, 0xB]
mov r2, sp
ldrb r1, [r2, 0xC]
movs r4, 0xF
movs r3, 0xF
adds r0, r3, 0
ands r0, r1
movs r1, 0x70
b _0801755A
_08017544:
mov r0, sp
movs r1, 0
strb r1, [r0, 0xA]
strb r1, [r0, 0xB]
mov r2, sp
ldrb r1, [r2, 0xC]
movs r4, 0xF
movs r3, 0xF
adds r0, r3, 0
ands r0, r1
movs r1, 0xE0
_0801755A:
orrs r0, r1
strb r0, [r2, 0xC]
mov r1, sp
ldrb r0, [r1, 0xD]
orrs r0, r4
strb r0, [r1, 0xD]
ands r0, r3
movs r1, 0x90
_0801756A:
orrs r0, r1
strb r0, [r2, 0xD]
_0801756E:
mov r0, sp
movs r1, 0xFF
movs r2, 0
bl AddTextPrinter
add sp, 0x10
pop {r4,r5}
pop {r0}
bx r0
thumb_func_end sub_80173E0
thumb_func_start sub_8017580
sub_8017580: @ 8017580
push {r4-r7,lr}