summaryrefslogtreecommitdiff
path: root/macros
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-04-04 16:00:30 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2020-04-04 16:00:30 -0400
commit0ef004a4db9428f6350815c199ac5aa6379fc773 (patch)
tree5912f2b3ef6752838e44f1e077bf6697c4264582 /macros
parent79184bc71846127b9a4ac20f50c4a5b646e90f20 (diff)
`dsprite y, ypx, x, xpx, off, attr` -> `dbsprite x, y, xpx, ypx, off, attr`
Diffstat (limited to 'macros')
-rw-r--r--macros/gfx.asm6
-rw-r--r--macros/legacy.asm5
2 files changed, 8 insertions, 3 deletions
diff --git a/macros/gfx.asm b/macros/gfx.asm
index e9851501a..2c67cfc8a 100644
--- a/macros/gfx.asm
+++ b/macros/gfx.asm
@@ -44,7 +44,7 @@ ENDM
depixel EQUS "ldpixel de,"
bcpixel EQUS "ldpixel bc,"
-dsprite: MACRO
-; y tile, y pixel, x tile, x pixel, vtile offset, attributes
- db (\1 * TILE_WIDTH) % $100 + \2, (\3 * TILE_WIDTH) % $100 + \4, \5, \6
+dbsprite: MACRO
+; x tile, y tile, x pixel, y pixel, vtile offset, attributes
+ db (\2 * TILE_WIDTH) % $100 + \4, (\1 * TILE_WIDTH) % $100 + \3, \5, \6
ENDM
diff --git a/macros/legacy.asm b/macros/legacy.asm
index 6234b8343..8c6f2a9dd 100644
--- a/macros/legacy.asm
+++ b/macros/legacy.asm
@@ -6,6 +6,11 @@
callba EQUS "farcall"
callab EQUS "callfar"
+; macros/gfx.asm
+dsprite: MACRO
+ dbsprite \2, \4, \1, \3, \5, \6
+ENDM
+
; macros/scripts/audio.asm
__ EQU 0
CC EQU 13