From 7aca51b4c3f9ebe71f2eb50d767c82d516615a9d Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 25 Nov 2022 17:35:10 -0800 Subject: [PATCH] partly producing output --- Makefile | 5 ++++- dither4.s | 8 ++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 502d4d8..21397f3 100644 --- a/Makefile +++ b/Makefile @@ -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 : diff --git a/dither4.s b/dither4.s index 1e8d81d..4f49dd7 100644 --- a/dither4.s +++ b/dither4.s @@ -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