through sub_812D5EC
This commit is contained in:
@@ -5,124 +5,6 @@
|
||||
|
||||
.text
|
||||
|
||||
thumb_func_start sub_812D558
|
||||
sub_812D558: @ 812D558
|
||||
push {lr}
|
||||
bl remove_some_task
|
||||
bl ResetTasks
|
||||
bl ResetSpriteData
|
||||
bl dp13_810BB8C
|
||||
bl ResetPaletteFade
|
||||
movs r0, 0
|
||||
bl npc_paltag_set_load
|
||||
ldr r1, _0812D580 @ =gReservedSpritePaletteCount
|
||||
movs r0, 0x7
|
||||
strb r0, [r1]
|
||||
pop {r0}
|
||||
bx r0
|
||||
.align 2, 0
|
||||
_0812D580: .4byte gReservedSpritePaletteCount
|
||||
thumb_func_end sub_812D558
|
||||
|
||||
thumb_func_start sub_812D584
|
||||
sub_812D584: @ 812D584
|
||||
push {lr}
|
||||
movs r1, 0xFA
|
||||
lsls r1, 5
|
||||
movs r0, 0
|
||||
bl SetGpuReg
|
||||
pop {r0}
|
||||
bx r0
|
||||
thumb_func_end sub_812D584
|
||||
|
||||
thumb_func_start sub_812D594
|
||||
sub_812D594: @ 812D594
|
||||
push {lr}
|
||||
movs r0, 0
|
||||
movs r1, 0
|
||||
movs r2, 0
|
||||
bl ChangeBgX
|
||||
movs r0, 0
|
||||
movs r1, 0
|
||||
movs r2, 0
|
||||
bl ChangeBgY
|
||||
movs r0, 0x1
|
||||
movs r1, 0
|
||||
movs r2, 0
|
||||
bl ChangeBgX
|
||||
movs r0, 0x1
|
||||
movs r1, 0
|
||||
movs r2, 0
|
||||
bl ChangeBgY
|
||||
movs r0, 0x2
|
||||
movs r1, 0
|
||||
movs r2, 0
|
||||
bl ChangeBgX
|
||||
movs r0, 0x2
|
||||
movs r1, 0
|
||||
movs r2, 0
|
||||
bl ChangeBgY
|
||||
movs r0, 0x3
|
||||
movs r1, 0
|
||||
movs r2, 0
|
||||
bl ChangeBgX
|
||||
movs r0, 0x3
|
||||
movs r1, 0
|
||||
movs r2, 0
|
||||
bl ChangeBgY
|
||||
pop {r0}
|
||||
bx r0
|
||||
thumb_func_end sub_812D594
|
||||
|
||||
thumb_func_start sub_812D5EC
|
||||
sub_812D5EC: @ 812D5EC
|
||||
push {r4-r6,lr}
|
||||
ldr r1, _0812D638 @ =gUnknown_20370C0
|
||||
ldrh r0, [r1]
|
||||
cmp r0, 0xF
|
||||
bhi _0812D632
|
||||
ldr r5, _0812D63C @ =gSpecialVar_0x8005
|
||||
ldrh r0, [r5]
|
||||
cmp r0, 0x5
|
||||
bhi _0812D632
|
||||
ldr r0, _0812D640 @ =gSaveBlock1Ptr
|
||||
ldr r2, [r0]
|
||||
ldrh r0, [r1]
|
||||
lsls r0, 2
|
||||
adds r2, r0
|
||||
ldr r0, _0812D644 @ =0x00003a54
|
||||
adds r2, r0
|
||||
ldrh r3, [r2]
|
||||
lsls r0, r3, 18
|
||||
lsrs r0, 20
|
||||
movs r4, 0x1
|
||||
adds r1, r4, 0
|
||||
ldrh r6, [r5]
|
||||
lsls r1, r6
|
||||
orrs r1, r0
|
||||
ldr r6, _0812D648 @ =0x00000fff
|
||||
adds r0, r6, 0
|
||||
ands r1, r0
|
||||
lsls r1, 2
|
||||
ldr r0, _0812D64C @ =0xffffc003
|
||||
ands r0, r3
|
||||
orrs r0, r1
|
||||
strh r0, [r2]
|
||||
strh r4, [r5]
|
||||
bl sub_812D650
|
||||
_0812D632:
|
||||
pop {r4-r6}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.align 2, 0
|
||||
_0812D638: .4byte gUnknown_20370C0
|
||||
_0812D63C: .4byte gSpecialVar_0x8005
|
||||
_0812D640: .4byte gSaveBlock1Ptr
|
||||
_0812D644: .4byte 0x00003a54
|
||||
_0812D648: .4byte 0x00000fff
|
||||
_0812D64C: .4byte 0xffffc003
|
||||
thumb_func_end sub_812D5EC
|
||||
|
||||
thumb_func_start sub_812D650
|
||||
sub_812D650: @ 812D650
|
||||
push {r4,lr}
|
||||
|
||||
Reference in New Issue
Block a user