summaryrefslogtreecommitdiff
path: root/macros.asm
diff options
context:
space:
mode:
Diffstat (limited to 'macros.asm')
-rw-r--r--macros.asm12
1 files changed, 12 insertions, 0 deletions
diff --git a/macros.asm b/macros.asm
index 3a22a43db..135694883 100644
--- a/macros.asm
+++ b/macros.asm
@@ -42,6 +42,18 @@ lb: MACRO ; r, hi, lo
ENDM
+; Constant enumeration
+
+const_def: MACRO
+const_value SET 0
+ENDM
+
+const: MACRO
+\1 EQU const_value
+const_value SET const_value + 1
+ENDM
+
+
TX_RAM: MACRO
db 1
dw \1