summaryrefslogtreecommitdiff
path: root/arm7/asm/macros/function.inc
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@gmail.com>2020-04-25 21:07:47 -0400
committerPikalaxALT <PikalaxALT@gmail.com>2020-04-25 21:07:47 -0400
commit409de04065549094cec4905209aaf90dd7e3060c (patch)
tree22d7ea8e8e6b6bc6c94454503f01929b29f16b80 /arm7/asm/macros/function.inc
parent4b97511982ecdecbac166218b86e786c5cb6718b (diff)
Move arm7 build files to subdirectory
Diffstat (limited to 'arm7/asm/macros/function.inc')
-rw-r--r--arm7/asm/macros/function.inc24
1 files changed, 24 insertions, 0 deletions
diff --git a/arm7/asm/macros/function.inc b/arm7/asm/macros/function.inc
new file mode 100644
index 00000000..6b9e5f40
--- /dev/null
+++ b/arm7/asm/macros/function.inc
@@ -0,0 +1,24 @@
+ .macro arm_func_start name
+ .balign 4, 0
+ .global \name
+ .arm
+ .endm
+
+ .macro arm_func_end name
+ .size \name, .-\name
+ .endm
+
+ .macro thumb_func_start name
+ .balign 4, 0
+ .global \name
+ .thumb
+ .endm
+
+ .macro non_word_aligned_thumb_func_start name
+ .global \name
+ .thumb
+ .endm
+
+ .macro thumb_func_end name
+ .size \name, .-\name
+ .endm