Manually clear screen

If I don't do this I get gibberish in most emulators
(apparently not SNES9x)
This commit is contained in:
Greg Shuflin 2022-06-13 18:06:18 -07:00
parent f6efec6961
commit 14b496ae1c

View File

@ -65,6 +65,16 @@ start:
cpx #(charset_end - charset) cpx #(charset_end - charset)
bne @charset_loop bne @charset_loop
; Manually clear screen
ldx #(VRAM_BG1)
@loop:
stx VMADDL
stz VMDATAL
stz VMDATAH
inx
cpx #(VRAM_BG1 + 32 * 29)
bne @loop
; write tile to position (1, 1) ; write tile to position (1, 1)
TILE_X = 1 TILE_X = 1
TILE_Y = 1 TILE_Y = 1