Last Modified: 2/27/2022
Loads tiles into VRAM using DMA.
Name | Type | Required | Description |
TileLocation | Line Label | Yes | The line label where the tiles you want to load resides. |
NumberOfTiles | Integer | Yes | The number of tiles to load. |
VRAMLocation | Integer | Yes | The destination location for your tiles. |
Syntax: DmaLoad <TileLocation>, <NumberOfTiles>, <VRAMLocation> |
Palettes MyPal,0,0,16 DmaOffset = 0 DmaLoad MyTiles,1,0 Sleep 60 DmaOffset = 32 DmaLoad MyTiles,1,0 MyPal: DataInt $0000,$00EE,$0E0E,$000E,$0EE0,$00E0,$0E00,$0888 DataInt $0CCC,$0088,$0808,$0008,$0880,$0080,$0800,$0000 MyTiles: DataLong $11111111 DataLong $11111111 DataLong $11111111 DataLong $11111111 DataLong $11111111 DataLong $11111111 DataLong $11111111 DataLong $11111111 DataLong $22222222 DataLong $22222222 DataLong $22222222 DataLong $22222222 DataLong $22222222 DataLong $22222222 DataLong $22222222 DataLong $22222222 DataLong $22222222 |