summaryrefslogtreecommitdiff
path: root/asm/macros/function.s
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2015-10-19 09:42:57 -0700
committeryenatch <yenatch@gmail.com>2015-10-19 09:42:57 -0700
commit8fb91c74b2df4134442b01fecaa5f91e3ce2e421 (patch)
treed15d67b24730c9ef33dc9a78fd9037073ead64c8 /asm/macros/function.s
parente17df124ff5d5870b97406a934da1b275f4b710a (diff)
add event script macros
Diffstat (limited to 'asm/macros/function.s')
-rw-r--r--asm/macros/function.s29
1 files changed, 29 insertions, 0 deletions
diff --git a/asm/macros/function.s b/asm/macros/function.s
new file mode 100644
index 000000000..b109595df
--- /dev/null
+++ b/asm/macros/function.s
@@ -0,0 +1,29 @@
+ .macro arm_func_start name
+ .align 2, 0
+ .global \name
+ .arm
+ .type \name, %function
+ .endm
+
+ .macro arm_func_end name
+ .size \name, .-\name
+ .endm
+
+ .macro thumb_func_start name
+ .align 2, 0
+ .global \name
+ .thumb
+ .thumb_func
+ .type \name, %function
+ .endm
+
+ .macro non_word_aligned_thumb_func_start name
+ .global \name
+ .thumb
+ .thumb_func
+ .type \name, %function
+ .endm
+
+ .macro thumb_func_end name
+ .size \name, .-\name
+ .endm