From 765a683ddaacc933eabbaef1b16f0d72d219f9c9 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 25 Nov 2022 18:01:14 -0800 Subject: [PATCH] ... --- Makefile | 22 +++++++++------------- dither-image.js | 12 ++++++++---- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/Makefile b/Makefile index 22e9f2b..9de0b27 100644 --- a/Makefile +++ b/Makefile @@ -5,23 +5,19 @@ all : sample0.xex sample1.xex sample2.xex sample3.xex sample4.xex sample5.xex sa # reminder: $< is input # $@ is output -%.s : %.jpg +%.s : %.jpg dither-image.js node dither-image.js $< $@ $@.png %.o : %.s ca65 -v -t atari -o $@ $< %.xex : %.o dither4.o - ld65 -v -C atari-asm-xex.cfg -o $@ $< + ld65 -v -C atari-asm-xex.cfg -o $@ $< dither4.o -dither4.xex : dither4.o sample6.o - ld65 -v -C atari-asm-xex.cfg -o $@ $< - - -#clean : -# rm -f dither4.o -# rm -f dither4.xex -# rm -f sample[0-6].o -# rm -f sample[0-6].s -# rm -f sample[0-6].xex -# rm -f sample[0-6].png +clean : + rm -f dither4.o + rm -f dither4.xex + rm -f sample[0-6].o + rm -f sample[0-6].s + rm -f sample[0-6].xex + rm -f sample[0-6].png diff --git a/dither-image.js b/dither-image.js index 46b9216..e57dbfe 100644 --- a/dither-image.js +++ b/dither-image.js @@ -672,17 +672,21 @@ function genAssembly(width, height, nbits, lines) { } return `.data +.export palette1 +.export palette2 +.export palette3 +.export framebuffer -.export far palette1: +palette1: ${byte2byte(palette1)} -.export far palette2: +palette2: ${byte2byte(palette2)} -.export far palette3: +palette3: ${byte2byte(palette3)} -.export far framebuffer: +framebuffer: ${byte2byte(framebuffer)} `; }