dsprite y, ypx, x, xpx, off, attr -> dbsprite x, y, xpx, ypx, off, attr

This commit is contained in:
Rangi
2020-04-04 16:00:30 -04:00
parent 79184bc718
commit 0ef004a4db
14 changed files with 1922 additions and 1917 deletions

View File

@@ -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