From 1fc90173f7594ed4a6b1e3246f2327b235bae643 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sat, 10 Dec 2022 13:12:52 -0800 Subject: [PATCH] ok almost working ;) sometimes loses palette sync --- dither4.s | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dither4.s b/dither4.s index 9b8bb23..5c7ce8f 100644 --- a/dither4.s +++ b/dither4.s @@ -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