summaryrefslogtreecommitdiff
path: root/asm/debug.s
diff options
context:
space:
mode:
authorSeth Barberee <seth.barberee@gmail.com>2021-01-27 18:46:39 -0600
committerSeth Barberee <seth.barberee@gmail.com>2021-01-28 09:24:55 -0600
commit4886c9f7dcfbaea24ff56e47c81e8af027b86c98 (patch)
tree8ce1afc88c2d8fc006d32b57d9ab3acea01f0763 /asm/debug.s
parentcb77386b65b0a78c16ccd2dfd3d329aaf502ac2e (diff)
decomp, label, doc, repeat
Diffstat (limited to 'asm/debug.s')
-rw-r--r--asm/debug.s30
1 files changed, 30 insertions, 0 deletions
diff --git a/asm/debug.s b/asm/debug.s
new file mode 100644
index 0000000..e0f194d
--- /dev/null
+++ b/asm/debug.s
@@ -0,0 +1,30 @@
+ .include "constants/gba_constants.inc"
+ .include "asm/macros.inc"
+
+ .syntax unified
+
+ .text
+
+ thumb_func_start FatalError
+FatalError:
+ push {r1-r3}
+ push {r4,lr}
+ sub sp, 0x100
+ adds r1, r0, 0
+ ldr r4, [sp, 0x108]
+ ldr r0, _08011C14
+ bl FatalErrorPrintFuncFileLine
+ add r2, sp, 0x10C
+ mov r0, sp
+ adds r1, r4, 0
+ bl vsprintf
+ ldr r0, _08011C18
+ mov r1, sp
+ bl FatalErrorFormatMessage
+ bl FatalErrorHang
+ .align 2, 0
+_08011C14: .4byte gFatalText
+_08011C18: .4byte gUnknown_80D42D4
+ thumb_func_end FatalError
+
+ .align 2,0