diff options
author | red031000 <rubenru09@aol.com> | 2020-05-12 23:12:35 +0100 |
---|---|---|
committer | red031000 <rubenru09@aol.com> | 2020-05-12 23:12:35 +0100 |
commit | 59171916421e659bcb35b1b47eaf748fac2fea6d (patch) | |
tree | fd5886b4a76002766c94a5d33a1a42fd14335e0e /arm9/modules/13/asm/module_13_init.s | |
parent | 26b7a78d02b261256e420f149bb7bae66e392ee7 (diff) | |
parent | f4ea052ed0b4e3b0d6a3c12bce46ee53228a9bc0 (diff) |
Merge branch 'master' of https://github.com/martmists/pokediamond into overlay69
Diffstat (limited to 'arm9/modules/13/asm/module_13_init.s')
-rw-r--r-- | arm9/modules/13/asm/module_13_init.s | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/arm9/modules/13/asm/module_13_init.s b/arm9/modules/13/asm/module_13_init.s new file mode 100644 index 00000000..03402138 --- /dev/null +++ b/arm9/modules/13/asm/module_13_init.s @@ -0,0 +1,33 @@ + .include "asm/macros.inc" + .include "global.inc" + .section .text + .balign 4, 0 + + thumb_func_start MOD13_02211E60 +MOD13_02211E60: ; 0x02211E60 + push {r3, r4, r5, lr} + add r4, r0, #0 + bl FUN_0202E49C + bl OS_InitTick + bl OS_InitAlarm + bl OS_DisableInterrupts + mov r1, #1 + add r5, r0, #0 + add r0, r4, #0 + lsl r1, r1, #0x12 + bl FUN_02016998 + add r4, r0, #0 + mov r1, #1 + mov r2, #0 + bl MOD13_02223494 + add r0, r4, #0 + bl FUN_02016A18 + add r0, r5, #0 + bl OS_RestoreInterrupts + ldr r1, _02211EA0 ; =0x04000208 + ldrh r0, [r1] + mov r0, #1 + strh r0, [r1] + pop {r3, r4, r5, pc} + .align 2, 0 +_02211EA0: .word 0x04000208 |