diff options
author | ProjectRevoTPP <projectrevotpp@hotmail.com> | 2018-01-11 14:55:51 -0500 |
---|---|---|
committer | ProjectRevoTPP <projectrevotpp@hotmail.com> | 2018-01-11 14:55:51 -0500 |
commit | 8b41179e9349ac3dcc98f2436be2fa70f5040a33 (patch) | |
tree | be57f4b91ef966980e0ed8cee40cd920bb70c473 /include/macros/asm.inc | |
parent | 2e713e820ac25a6a68a150c4f07d4865609985f6 (diff) | |
parent | e7672a1aeb5e42d6f4e416ede9f6220122d11743 (diff) |
merge
Diffstat (limited to 'include/macros/asm.inc')
-rw-r--r-- | include/macros/asm.inc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/macros/asm.inc b/include/macros/asm.inc new file mode 100644 index 000000000..26b2707ca --- /dev/null +++ b/include/macros/asm.inc @@ -0,0 +1,17 @@ + .ifndef GUARD_ASM_MACROS_ASM_INC + .set GUARD_ASM_MACROS_ASM_INC, 1 + + .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 + + .endif @ GUARD_ASM_MACROS_ASM_INC |