summaryrefslogtreecommitdiff
path: root/macros.asm
diff options
context:
space:
mode:
Diffstat (limited to 'macros.asm')
-rw-r--r--macros.asm7
1 files changed, 7 insertions, 0 deletions
diff --git a/macros.asm b/macros.asm
index 7ed3ecf36..4370886b2 100644
--- a/macros.asm
+++ b/macros.asm
@@ -104,6 +104,13 @@ dwcoord: MACRO
endr
ENDM
+ldcoord: MACRO
+ if _NARG < 3
+ ld [TileMap + SCREEN_WIDTH * (\2) + (\1)], a
+ else
+ ld [\3 + SCREEN_WIDTH * (\2) + (\1)], a
+ endc
+ ENDM
; pic animations
frame: MACRO