summaryrefslogtreecommitdiff
path: root/macros
diff options
context:
space:
mode:
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