summaryrefslogtreecommitdiff
path: root/macros/enum.asm
diff options
context:
space:
mode:
Diffstat (limited to 'macros/enum.asm')
-rw-r--r--macros/enum.asm5
1 files changed, 5 insertions, 0 deletions
diff --git a/macros/enum.asm b/macros/enum.asm
index 0a72d49d8..aee6ee530 100644
--- a/macros/enum.asm
+++ b/macros/enum.asm
@@ -29,3 +29,8 @@ const: MACRO
\1 EQU const_value
const_value = const_value + 1
ENDM
+
+shift_const: MACRO
+\1 EQU 1 << const_value
+const_value = const_value + 1
+ENDM