I have my 'H' character displaying on screen and all tiles are set to 0 so the following code fills the screen with H characters. All well and good but no matter what I try I can't work out how to set the H to tile index 1 and to set the map to show that tile in a particular place. The closest I have come is loading the tile into position 1536 (0600) in the tilemap and I don't even know why or how that happened. lol.
Here's the bit I have for displaying a screen of characters. Any hints or ideas on where to go from here?
Code: Select all
; Tell VDP we're about to write to VRAM
SetVRAMWrite 0x0000
move.l #CharacterH, a0 ; Store H character in address register 0 (a0)
move.w #0x7, d0 ; Loop counter = 8 longwords in tile (-1)
CharLoop: ; Start of loop
move.l (a0)+, vdp_data ; Write tile line, post increment address (like for loop)
dbra d0, CharLoop ; Loop until finished