diff --git a/homebrew-tutorial/main.asm b/homebrew-tutorial/main.asm index fcd4862..ddcc2ad 100644 --- a/homebrew-tutorial/main.asm +++ b/homebrew-tutorial/main.asm @@ -65,6 +65,16 @@ start: cpx #(charset_end - charset) 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) TILE_X = 1 TILE_Y = 1