diff options
Diffstat (limited to 'asm/fatal_system.s')
-rw-r--r-- | asm/fatal_system.s | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/asm/fatal_system.s b/asm/fatal_system.s new file mode 100644 index 0000000..e4da05e --- /dev/null +++ b/asm/fatal_system.s @@ -0,0 +1,38 @@ + .include "constants/gba_constants.inc" + .include "asm/macros.inc" + + .syntax unified + + .text + + thumb_func_start FatalErrorFormatMessage +FatalErrorFormatMessage: + push {r0-r3} + push {lr} + sub sp, 0x100 + ldr r1, [sp, 0x104] + add r2, sp, 0x108 + mov r0, sp + bl vsprintf + add sp, 0x100 + pop {r3} + add sp, 0x10 + bx r3 + thumb_func_end FatalErrorFormatMessage + + thumb_func_start sub_8011B88 +sub_8011B88: + push {r0-r3} + push {lr} + sub sp, 0x100 + ldr r1, [sp, 0x104] + add r2, sp, 0x108 + mov r0, sp + bl vsprintf + add sp, 0x100 + pop {r3} + add sp, 0x10 + bx r3 + thumb_func_end sub_8011B88 + + .align 2,0 |