mirror of
https://github.com/pret/pokeheartgold.git
synced 2024-11-23 13:20:02 +00:00
118 lines
2.6 KiB
ArmAsm
118 lines
2.6 KiB
ArmAsm
#include "constants/easy_chat.h"
|
|
#include "constants/items.h"
|
|
#include "constants/maps.h"
|
|
#include "constants/moves.h"
|
|
#include "constants/species.h"
|
|
.include "asm/macros.inc"
|
|
.include "global.inc"
|
|
|
|
.text
|
|
|
|
thumb_func_start LoadDwcOverlay
|
|
LoadDwcOverlay: ; 0x020915B0
|
|
ldr r3, _020915B8 ; =HandleLoadOverlay
|
|
ldr r0, _020915BC ; =SDK_OVERLAY_OVY_0_ID
|
|
mov r1, #2
|
|
bx r3
|
|
.balign 4, 0
|
|
_020915B8: .word HandleLoadOverlay
|
|
_020915BC: .word SDK_OVERLAY_OVY_0_ID
|
|
thumb_func_end LoadDwcOverlay
|
|
|
|
thumb_func_start UnloadDwcOverlay
|
|
UnloadDwcOverlay: ; 0x020915C0
|
|
ldr r3, _020915C8 ; =UnloadOverlayByID
|
|
ldr r0, _020915CC ; =SDK_OVERLAY_OVY_0_ID
|
|
bx r3
|
|
nop
|
|
_020915C8: .word UnloadOverlayByID
|
|
_020915CC: .word SDK_OVERLAY_OVY_0_ID
|
|
thumb_func_end UnloadDwcOverlay
|
|
|
|
thumb_func_start LoadOVY13
|
|
LoadOVY13: ; 0x020915D0
|
|
ldr r3, _020915D8 ; =HandleLoadOverlay
|
|
ldr r0, _020915DC ; =SDK_OVERLAY_OVY_13_ID
|
|
mov r1, #2
|
|
bx r3
|
|
.balign 4, 0
|
|
_020915D8: .word HandleLoadOverlay
|
|
_020915DC: .word SDK_OVERLAY_OVY_13_ID
|
|
thumb_func_end LoadOVY13
|
|
|
|
thumb_func_start UnloadOVY13
|
|
UnloadOVY13: ; 0x020915E0
|
|
ldr r3, _020915E8 ; =UnloadOverlayByID
|
|
ldr r0, _020915EC ; =SDK_OVERLAY_OVY_13_ID
|
|
bx r3
|
|
nop
|
|
_020915E8: .word UnloadOverlayByID
|
|
_020915EC: .word SDK_OVERLAY_OVY_13_ID
|
|
thumb_func_end UnloadOVY13
|
|
|
|
thumb_func_start sub_020915F0
|
|
sub_020915F0: ; 0x020915F0
|
|
push {r4, lr}
|
|
add r4, r1, #0
|
|
bl LoadDwcOverlay
|
|
bl LoadOVY13
|
|
add r0, r4, #0
|
|
bl ov13_0221BA00
|
|
bl UnloadOVY13
|
|
bl UnloadDwcOverlay
|
|
mov r0, #0
|
|
bl OS_ResetSystem
|
|
pop {r4, pc}
|
|
.balign 4, 0
|
|
thumb_func_end sub_020915F0
|
|
|
|
thumb_func_start LoadOVY38
|
|
LoadOVY38: ; 0x02091614
|
|
ldr r3, _0209161C ; =HandleLoadOverlay
|
|
ldr r0, _02091620 ; =SDK_OVERLAY_OVY_38_ID
|
|
mov r1, #2
|
|
bx r3
|
|
.balign 4, 0
|
|
_0209161C: .word HandleLoadOverlay
|
|
_02091620: .word SDK_OVERLAY_OVY_38_ID
|
|
thumb_func_end LoadOVY38
|
|
|
|
thumb_func_start UnloadOVY38
|
|
UnloadOVY38: ; 0x02091624
|
|
ldr r3, _0209162C ; =UnloadOverlayByID
|
|
ldr r0, _02091630 ; =SDK_OVERLAY_OVY_38_ID
|
|
bx r3
|
|
nop
|
|
_0209162C: .word UnloadOverlayByID
|
|
_02091630: .word SDK_OVERLAY_OVY_38_ID
|
|
thumb_func_end UnloadOVY38
|
|
|
|
thumb_func_start sub_02091634
|
|
sub_02091634: ; 0x02091634
|
|
push {r4, lr}
|
|
mov r2, #0x41
|
|
add r4, r0, #0
|
|
mov r0, #3
|
|
mov r1, #0x30
|
|
lsl r2, r2, #0xc
|
|
bl CreateHeap
|
|
add r0, r4, #0
|
|
bl OverlayManager_GetParentWork
|
|
ldr r0, [r0, #8]
|
|
mov r1, #0x30
|
|
bl sub_020915F0
|
|
mov r0, #0x30
|
|
bl DestroyHeap
|
|
mov r0, #0
|
|
bl OS_ResetSystem
|
|
mov r0, #1
|
|
pop {r4, pc}
|
|
.balign 4, 0
|
|
thumb_func_end sub_02091634
|
|
|
|
.rodata
|
|
|
|
.public gApp_MainMenu_SelectOption_NintendoWFCSetup
|
|
gApp_MainMenu_SelectOption_NintendoWFCSetup:
|
|
.word sub_02091634, 0, 0, 0xFFFFFFFF
|