diff options
author | yenatch <yenatch@gmail.com> | 2016-06-09 04:02:15 -0400 |
---|---|---|
committer | yenatch <yenatch@gmail.com> | 2016-06-15 16:38:19 -0400 |
commit | e94cd4803090ce275fb2b489d7e4cc6ade0e3327 (patch) | |
tree | a0c8d918e209b1cf7164586bb656078ad7f250f6 /asm/macros/asm.s | |
parent | f2654a380e46152f2624174e8087b6998cccb91b (diff) |
Add macros for maps and scripts.
Change map constants to resemble labels to avoid having to convert.
Diffstat (limited to 'asm/macros/asm.s')
-rw-r--r-- | asm/macros/asm.s | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/asm/macros/asm.s b/asm/macros/asm.s new file mode 100644 index 000000000..4ac003fab --- /dev/null +++ b/asm/macros/asm.s @@ -0,0 +1,12 @@ + .macro inc x + .set \x, \x + 1 + .endm + + .macro enum_start x=0 + .set __enum__, \x + .endm + + .macro enum constant + .equiv \constant, __enum__ + inc __enum__ + .endm |