partly producing output

This commit is contained in:
Brooke Vibber 2022-11-25 17:35:10 -08:00
parent f5f2c5dbbf
commit 7aca51b4c3
2 changed files with 8 additions and 5 deletions

View file

@ -9,7 +9,10 @@ all : dither4.xex
%.o : %.s
ca65 -v -t atari -o $@ $<
dither4.xex : dither4.o
%.s : %.jpg
node dither-image.js $< $@ $@.png
dither4.xex : dither4.o sample6.o
ld65 -v -C atari-asm-xex.cfg -o $@ $<
clean :

View file

@ -52,7 +52,7 @@ displaylist:
sta COLPF0
stx COLPF1
sty COLPF2
rst
rts
.endproc
.proc start
@ -60,9 +60,9 @@ displaylist:
lda #$00
sta SDMCTL
; Set up the display list
lda .low displaylist
lda #.lobyte(displaylist)
sta SDLSTL
lda .high displaylist
lda #.hibyte(displaylist)
sta SDLSTH
; Turn off interrupts except reset button
@ -72,7 +72,7 @@ displaylist:
; Manually wait for first scan line
wait_vblank:
lda VCOUNT
bnz wait_vblank
bne wait_vblank
; Re-enable display DMA
lda #$22