wip not working wide pixels

This commit is contained in:
Brooke Vibber 2024-12-31 17:49:13 -08:00
parent 87caa52543
commit f1ebb21bcb

View file

@ -234,9 +234,9 @@ display_list_len = display_list_end - display_list_start
color_map: color_map:
.byte 0 .byte 0
.repeat 85 .repeat 85
.byte 1 .byte %01010101
.byte 2 .byte %10101010
.byte 3 .byte %11111111
.endrepeat .endrepeat
@ -285,6 +285,11 @@ fill_masks:
.byte %00000001 .byte %00000001
.byte %00000000 .byte %00000000
pixel_masks:
.byte $ff
.byte $0f
.byte $03
viewport_zoom: viewport_zoom:
.byte 1 .byte 1
.byte 6 .byte 6
@ -1130,8 +1135,11 @@ enough:
; iter -> color ; iter -> color
ldx iter ldx iter
lda color_map,x lda color_map,x
ldx fill_level
and pixel_masks,x
sta pixel_color sta pixel_color
lda #(255 - 3) lda pixel_masks,x
eor #$ff
sta pixel_mask sta pixel_mask
; sy -> line base address in temp ; sy -> line base address in temp