summaryrefslogtreecommitdiff
path: root/macros.asm
diff options
context:
space:
mode:
Diffstat (limited to 'macros.asm')
-rw-r--r--macros.asm8
1 files changed, 8 insertions, 0 deletions
diff --git a/macros.asm b/macros.asm
index 031c211ed..9bf001464 100644
--- a/macros.asm
+++ b/macros.asm
@@ -90,6 +90,14 @@ coord: MACRO
ld \1, TileMap + SCREEN_WIDTH * (\3) + (\2)
ENDM
+dwcoord: MACRO
+ rept _NARG / 2
+ dw TileMap + SCREEN_WIDTH * (\2) + (\1)
+ shift
+ shift
+ endr
+ ENDM
+
; pic animations
frame: MACRO