pokeheartgold/asm/error_handling.s

19 lines
312 B
ArmAsm

.include "asm/macros.inc"
.include "global.inc"
.text
thumb_func_start GF_AssertFail
GF_AssertFail: ; 0x0202551C
push {r3, lr}
bl sub_02037D78
cmp r0, #0
beq _02025532
bl OS_GetProcMode
cmp r0, #0x12
beq _02025532
bl PrintErrorMessageAndReset
_02025532:
pop {r3, pc}
thumb_func_end GF_AssertFail