diff options
Diffstat (limited to 'arm9/asm/macros')
-rw-r--r-- | arm9/asm/macros/cw.inc | 12 | ||||
-rw-r--r-- | arm9/asm/macros/function.inc | 4 |
2 files changed, 16 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
diff --git a/arm9/asm/macros/function.inc b/arm9/asm/macros/function.inc index 3323f53e..9c3e5eb5 100644 --- a/arm9/asm/macros/function.inc +++ b/arm9/asm/macros/function.inc @@ -1,10 +1,12 @@ .macro arm_func_start name + .type \name,@function .balign 4, 0 .global \name .arm .endm .macro local_arm_func_start name + .type \name,@function .balign 4, 0 .arm .endm @@ -14,12 +16,14 @@ .endm .macro thumb_func_start name + .type \name,@function .balign 4, 0 .global \name .thumb .endm .macro non_word_aligned_thumb_func_start name + .type \name,@function .global \name .thumb .endm |