summaryrefslogtreecommitdiff
path: root/macros/coords.asm
diff options
context:
space:
mode:
authorRangi <35663410+Rangi42@users.noreply.github.com>2020-04-06 12:41:44 -0400
committerGitHub <noreply@github.com>2020-04-06 12:41:44 -0400
commit9076d63d62c847dd74b02391a4744ba83c7770e8 (patch)
tree69cd3cd33c9457b40ac4503d69f3cf3c0604772e /macros/coords.asm
parente225d296b72a41cbee6e16416d8d1fcfb4760445 (diff)
parent3144b54bd1dcc47ea339fcd2bd215ec96fc38c4a (diff)
Merge pull request #705 from Rangi42/master
Upgrade to rgbds 0.4.0, and do miscellaneous fixes
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