From c424f1b8bc784c1b3bdbed15bb841a068b637039 Mon Sep 17 00:00:00 2001 From: Brooke Vibber Date: Tue, 31 Dec 2024 22:10:27 -0800 Subject: [PATCH] fill in scanlines during tiering --- mandel.s | 17 +++++++++++++++++ todo.md | 2 -- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/mandel.s b/mandel.s index 472f613..1f5a06f 100644 --- a/mandel.s +++ b/mandel.s @@ -1201,6 +1201,10 @@ shift_loop: jmp shift_loop shift_done: + ldy fill_level + ldx fill_masks,y + inx + ; pixel_offset = temp >> 2 lda temp lsr a @@ -1208,12 +1212,25 @@ shift_done: sta pixel_offset tay +draw_pixel: ; read, mask, or, write lda (pixel_ptr),y and pixel_mask ora pixel_color sta (pixel_ptr),y + dex + beq done + clc + lda #40 + adc pixel_ptr + sta pixel_ptr + lda #0 + adc pixel_ptr + 1 + sta pixel_ptr + 1 + jmp draw_pixel + +done: rts .endproc diff --git a/todo.md b/todo.md index e8cffe3..7ab092b 100644 --- a/todo.md +++ b/todo.md @@ -11,8 +11,6 @@ things to try: * y-axis mirror optimization -* try filling in the extra scanlines on 4x4 and 2x2 tiering - * extract viewport for display & re-input via keyboard * fujinet screenshot/viewport uploader