summaryrefslogtreecommitdiff
path: root/macros.asm
diff options
context:
space:
mode:
Diffstat (limited to 'macros.asm')
-rw-r--r--macros.asm18
1 files changed, 18 insertions, 0 deletions
diff --git a/macros.asm b/macros.asm
index b003a3786..135694883 100644
--- a/macros.asm
+++ b/macros.asm
@@ -36,6 +36,24 @@ callba: MACRO ; bank, address
rst FarCall
ENDM
+
+lb: MACRO ; r, hi, lo
+ ld \1, \2 << 8 + \3
+ 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