summaryrefslogtreecommitdiff
path: root/macros.asm
diff options
context:
space:
mode:
Diffstat (limited to 'macros.asm')
-rw-r--r--macros.asm10
1 files changed, 9 insertions, 1 deletions
diff --git a/macros.asm b/macros.asm
index e7b157a8d..7a7b2d1aa 100644
--- a/macros.asm
+++ b/macros.asm
@@ -218,10 +218,18 @@ if _NARG == 5
else
lb \1, \2 * 8, \3 * 8
endc
- endm
+endm
depixel EQUS "ldpixel de,"
+dbpixel: MACRO
+if _NARG == 4
+ db \1 * 8 + \3, \2 * 8 + \4
+else
+ db \1 * 8, \2 * 8
+endc
+endm
+
bgcoord: MACRO
IF _NARG == 4
ld \1, \3 * $20 + \2 + \4