ok almost working ;) sometimes loses palette sync

This commit is contained in:
Brooke Vibber 2022-12-10 13:12:52 -08:00
parent 53026bbfdd
commit 1fc90173f7

View file

@ -34,7 +34,7 @@ bytes_per_line = 40
pages_per_frame = 32
lines_per_frame = 262
;scanline_offset = 31 + (40 - 24) / 2
scanline_offset = 40
scanline_offset = 46
scanline_max = (lines_per_frame - scanline_offset) / 2
.data
@ -227,7 +227,7 @@ wait_loop:
cpy #0
bne each_scanline_pair
audio_inc
audio_inc ; @FIXME
lda frame_counter
eor #1
sta frame_counter
@ -236,8 +236,6 @@ wait_loop:
.endscope
.endmacro
lda #(256 - scanline_offset)
sta scanline
lda frame_counter
beq run_frame1
jmp run_frame2