Compare commits

..

2 Commits

Author SHA1 Message Date
Greg Shuflin
14b496ae1c Manually clear screen
If I don't do this I get gibberish in most emulators
(apparently not SNES9x)
2022-06-13 18:06:18 -07:00
Greg Shuflin
f6efec6961 Justfile: run with mesen-s 2022-06-13 18:02:47 -07:00
2 changed files with 13 additions and 0 deletions

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

View File

@ -1,6 +1,9 @@
default: default:
just --list just --list
run-homebrew: homebrew-tutorial
mesen-s ./out/main.sfc
homebrew-tutorial: homebrew-tutorial:
mkdir -p out mkdir -p out
ca65 ./homebrew-tutorial/main.asm -o ./out/main.o -g ca65 ./homebrew-tutorial/main.asm -o ./out/main.o -g