diff options
author | YamaArashi <shadow962@live.com> | 2015-10-20 18:59:47 -0700 |
---|---|---|
committer | YamaArashi <shadow962@live.com> | 2015-10-20 18:59:47 -0700 |
commit | 1e46fbec421c89c18e7abfc65b7b679f806f61fc (patch) | |
tree | 9082318ab9b238b944b6e1df6d4566c5d06031d8 /asm/macros/function.s | |
parent | e17df124ff5d5870b97406a934da1b275f4b710a (diff) | |
parent | 45fc5763549a852c0729d15f0c41765d549d2c01 (diff) |
Merge pull request #1 from yenatch/event-macros
add event script macros
Diffstat (limited to 'asm/macros/function.s')
-rw-r--r-- | asm/macros/function.s | 29 |
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 |