summaryrefslogtreecommitdiff
path: root/macros/coords.asm
diff options
context:
space:
mode:
Diffstat (limited to 'macros/coords.asm')
-rw-r--r--macros/coords.asm9
1 files changed, 7 insertions, 2 deletions
diff --git a/macros/coords.asm b/macros/coords.asm
index 0fbf96ccd..5a87e1d3d 100644
--- a/macros/coords.asm
+++ b/macros/coords.asm
@@ -28,8 +28,7 @@ dwcoord: MACRO
; x, y
rept _NARG / 2
dw (\2) * SCREEN_WIDTH + (\1) + wTilemap
- shift
- shift
+ shift 2
endr
ENDM
@@ -50,3 +49,9 @@ lda_coord: MACRO
ld a, [(\2) * SCREEN_WIDTH + (\1) + \3]
endc
ENDM
+
+menu_coords: MACRO
+; x1, y1, x2, y2
+ db \2, \1 ; start coords
+ db \4, \3 ; end coords
+ENDM