summaryrefslogtreecommitdiff
path: root/arm9/asm/macros
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2021-09-04 12:38:14 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2021-09-04 12:38:14 -0400
commit43e94ce5920e4dc00ce78624104874cf9f1ac4a5 (patch)
tree581320eedd03f5c4d083aa52e4bcb15dd2101c0c /arm9/asm/macros
parent1499e9f8be9458bbf94cbc4dc6d1034f53606cd0 (diff)
Refactor .exceptix, 1
Diffstat (limited to 'arm9/asm/macros')
-rw-r--r--arm9/asm/macros/cw.inc12
-rw-r--r--arm9/asm/macros/function.inc4
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