summaryrefslogtreecommitdiff
path: root/macros.asm
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2015-02-02 15:46:06 -0800
committeryenatch <yenatch@gmail.com>2015-02-02 15:46:06 -0800
commit46f2dbb36746cd6c094e3bae825396f4137188b5 (patch)
treea261fe7a94c33f433fa53924cfdfd2b8a629e752 /macros.asm
parentfe230e2e7dc15e8cba0b771c5220cf51aad20f08 (diff)
Mobile trade incbins and coordinate macros.
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