diff options
Diffstat (limited to 'macros.asm')
-rwxr-xr-x | macros.asm | 37 |
1 files changed, 37 insertions, 0 deletions
@@ -59,3 +59,40 @@ hlCoord: MACRO RGB: MACRO dw (\3 << 10 | \2 << 5 | \1) ENDM + +;\1 = pointer to 2bpp tile data +;\2 = destination for tile data in VRAM +;\3 = size of 2bpp tile data to copy +VIDEO_DATA_TILES: MACRO + dw \1 + db Bank(\1) + dw \2 + dw (\3 << 2) + ENDM + +;\1 = pointer to tilemap data +;\2 = destination for tilemap data in VRAM +;\3 = size of tilemap to copy +VIDEO_DATA_TILEMAP: MACRO + VIDEO_DATA_TILES \1, \2, \3 + ENDM + +;\1 = pointer to background attribute data +;\2 = destination for background attribute data in VRAM +;\3 = size of background attribute data to copy +VIDEO_DATA_BGATTR: MACRO + dw \1 + db Bank(\1) + dw \2 + dw (\3 << 2) | $2 + ENDM + +;\1 = pointer to palette data +;\2 = size of palette data +VIDEO_DATA_PALETTES: MACRO + dw \1 + db Bank(\1) + dw $0000 + dw (\2 << 1) | $1 + ENDM + |