LoadTiles |
Previous Next |
LoadTiles <TileDataLocation>, <Count>, <VramLocation> [, <Offset>]
|
Part
|
Description
|
<TileDataLocation>
|
Required. The location of the tile data. This can either be a line label
or a <Long> variable. If using a <Long>, you will need to load the
line label address by using the LblPtr&() function.
|
<Count>
|
Required. The number of tiles to load.
|
<VramLocation>
|
Required. Location in VRAM to load the tiles.
|
<Offset>
|
Optional. Offsets the <TileDataLocation> by the amount of tiles
specified by the <offset>.
|
LoadTiles MyTiles,1,1
a& = LblPtr&(MyTiles)
LoadTiles a&,1,2
DrawTiles 1,0,0
DrawTiles 2,0,1
MyTiles:
DataLong $0000000C
DataLong $000000CB
DataLong $00000CBD
DataLong $00000DBA
DataLong $0000DCCB
DataLong $000DC00C
DataLong $00DC0000
DataLong $00000000
|