cbm3001-memtest/Makefile
2022-02-06 06:52:57 +01:00

25 lines
794 B
Makefile

.PHONY: all memtest-f000.901465.bin memtest-f000.901465.o ascii memtest-f000.901465+ascii.o emu5602
all: memtest-f000.901465.bin ascii emu5602
clean:
rm -f memtest-f000.901465.bin memtest-f000.901465.o
rm -f memtest-f000.901465+ascii.bin memtest-f000.901465+ascii.o
rm -f emu6502
memtest-f000.901465.bin: memtest-f000.901465.o
dd if=memtest-f000.901465.o bs=1 skip=2 of=memtest-f000.901465.bin
memtest-f000.901465.o:
xa -M -A F000 -O PETSCREEN -c -C -v -o memtest-f000.901465.o memtest-f000.901465.asm
ascii: memtest-f000.901465+ascii.o
dd if=memtest-f000.901465+ascii.o bs=1 skip=2 of=memtest-f000.901465+ascii.bin
memtest-f000.901465+ascii.o:
xa -M -A F000 -O ASCII -c -C -v -o memtest-f000.901465+ascii.o memtest-f000.901465.asm
emu5602:
gcc -o emu6502 emu6502.c fake6502.c