This commit is contained in:
Brooke Vibber 2022-11-25 18:01:14 -08:00
parent da00cf317f
commit 765a683dda
2 changed files with 17 additions and 17 deletions

View file

@ -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

View file

@ -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)}
`;
}