forked from brooke/mandel-6502
fill in scanlines during tiering
This commit is contained in:
parent
49fe315529
commit
c424f1b8bc
2 changed files with 17 additions and 2 deletions
17
mandel.s
17
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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue