sub_8009638
This commit is contained in:
67
asm/link.s
67
asm/link.s
@@ -5,73 +5,6 @@
|
||||
|
||||
.text
|
||||
|
||||
thumb_func_start sub_8009628
|
||||
sub_8009628: @ 8009628
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
ldr r1, =gUnknown_020229CC
|
||||
strh r0, [r1, 0x18]
|
||||
bx lr
|
||||
.pool
|
||||
thumb_func_end sub_8009628
|
||||
|
||||
thumb_func_start sub_8009638
|
||||
sub_8009638: @ 8009638
|
||||
push {r4,r5,lr}
|
||||
ldr r5, =gUnknown_020229CC
|
||||
ldr r4, =gSaveBlock2Ptr
|
||||
ldr r1, [r4]
|
||||
ldrb r2, [r1, 0xA]
|
||||
ldrb r0, [r1, 0xB]
|
||||
lsls r0, 8
|
||||
orrs r2, r0
|
||||
ldrb r0, [r1, 0xC]
|
||||
lsls r0, 16
|
||||
orrs r2, r0
|
||||
ldrb r0, [r1, 0xD]
|
||||
lsls r0, 24
|
||||
orrs r2, r0
|
||||
str r2, [r5, 0x4]
|
||||
adds r0, r5, 0
|
||||
adds r0, 0x8
|
||||
bl StringCopy
|
||||
ldr r0, [r4]
|
||||
ldrb r0, [r0, 0x8]
|
||||
strb r0, [r5, 0x13]
|
||||
ldr r0, =gUnknown_020229C6
|
||||
ldrh r0, [r0]
|
||||
str r0, [r5, 0x14]
|
||||
ldr r0, =gGameLanguage
|
||||
ldrb r0, [r0]
|
||||
strh r0, [r5, 0x1A]
|
||||
ldr r0, =gGameVersion
|
||||
ldrb r0, [r0]
|
||||
movs r2, 0x80
|
||||
lsls r2, 7
|
||||
adds r1, r2, 0
|
||||
adds r0, r1
|
||||
strh r0, [r5]
|
||||
movs r0, 0x80
|
||||
lsls r0, 8
|
||||
strh r0, [r5, 0x2]
|
||||
bl IsNationalPokedexEnabled
|
||||
strb r0, [r5, 0x10]
|
||||
ldr r0, =0x0000087f
|
||||
bl FlagGet
|
||||
lsls r0, 24
|
||||
cmp r0, 0
|
||||
beq _0800969E
|
||||
ldrb r0, [r5, 0x10]
|
||||
movs r1, 0x10
|
||||
orrs r0, r1
|
||||
strb r0, [r5, 0x10]
|
||||
_0800969E:
|
||||
pop {r4,r5}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end sub_8009638
|
||||
|
||||
thumb_func_start sub_80096BC
|
||||
sub_80096BC: @ 80096BC
|
||||
push {lr}
|
||||
|
||||
Reference in New Issue
Block a user