summaryrefslogtreecommitdiff
path: root/arm9/asm/macros/cw.inc
diff options
context:
space:
mode:
Diffstat (limited to 'arm9/asm/macros/cw.inc')
-rw-r--r--arm9/asm/macros/cw.inc12
1 files changed, 12 insertions, 0 deletions
diff --git a/arm9/asm/macros/cw.inc b/arm9/asm/macros/cw.inc
new file mode 100644
index 00000000..14841f11
--- /dev/null
+++ b/arm9/asm/macros/cw.inc
@@ -0,0 +1,12 @@
+ .macro exception what, size, data
+ .section .exceptix,4,1,2
+ .balign 4, 0
+ .type ?exc$\what, @object
+ .global ?exc$\what
+ .size ?exc$\what, 12
+?exc$\what:
+ .word \what
+ .short \size
+ .word \data
+ .previous
+ .endm