Draw another tile

This commit is contained in:
Greg Shuflin 2022-06-15 11:14:37 -07:00
parent 0de9c89162
commit 8f947ae232
2 changed files with 30 additions and 0 deletions

View File

@ -35,4 +35,25 @@ charset:
.byte %11111111 ; row 7, color 0
.byte %00000000 ; row 7, color 1
; tile 0x02
.byte %00000000
.byte %11111111
.byte %00000000
.byte %11111111
.byte %00000000
.byte %11111111
.byte %00000000
.byte %11111111
.byte %00000000
.byte %11111111
.byte %00000000
.byte %11111111
.byte %00000000
.byte %11111111
.byte %00000000
.byte %11111111
charset_end:

View File

@ -85,6 +85,15 @@ start:
sta VMDATAL
stz VMDATAH
; write tile 2 to position (4, 8)
TILE_X2= 4
TILE_Y2= 8
ldx #(VRAM_BG1 + (TILE_Y2* 32) + TILE_X2)
stx VMADDL
lda #$02
sta VMDATAL
stz VMDATAH
; Show bg1
lda #%00000001
sta TM