diff options
author | Made <made111@gmx.de> | 2020-05-08 23:06:05 +0200 |
---|---|---|
committer | Made <made111@gmx.de> | 2020-05-08 23:06:05 +0200 |
commit | ae744a2ea5a31f19330aedd1e264c88b97873c1c (patch) | |
tree | a30d34cbfba4e518eb6a7d4a52154ed86d41a428 /arm9/modules/13/asm/module_13_init.s | |
parent | 6d3d11491cf6e8289822d2c5ba9cd7e309a5ce11 (diff) | |
parent | f76cec09f8a2995244256d4b097d9eed2bebd34a (diff) |
Merge branch 'master' of https://github.com/martmists/pokediamond
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 |