initial atari tests (not with image) and dither improvements

palette selection now biases to matches on the bright side of
the RGB color cube, since black is always available for dithering

does better but still not perfect

atari binary just writes some test data to text framebuffer
but builds and runs
This commit is contained in:
Brooke Vibber 2022-11-20 15:43:34 -08:00
commit 94a2e40504
3 changed files with 93 additions and 12 deletions

23
dither4.s Normal file
View file

@ -0,0 +1,23 @@
SAVMSC = $58
.code
.export start
.proc start
; Get the framebuffer address and just write new fun values into it
; x: byte to write in
; y: index into the first 256 bytes of buffer
ldx #00
outer_loop:
txa
ldy #00
inner_loop:
sta (SAVMSC),y
iny
bne inner_loop
inx
jmp outer_loop
; infinite loop
.endproc