diff options
author | Marcus Huderle <huderlem@gmail.com> | 2015-09-13 19:08:13 -0700 |
---|---|---|
committer | Marcus Huderle <huderlem@gmail.com> | 2015-09-13 19:08:13 -0700 |
commit | 4ac3dcc5cb70bed33bea81946f7267656e36b00e (patch) | |
tree | a9db7faeb4d1665275654695d111e0deeb2d93a1 /macros.asm | |
parent | 47a3ec643d763961df5382216b88f6684ba68598 (diff) |
Add macros for video data entries, and dump some more graphics data.
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 + |