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 %.o : %.s
ca65 -v -t atari -o $@ $< 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 $@ $< ld65 -v -C atari-asm-xex.cfg -o $@ $<
clean : clean :

View file

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