2022-02-06 06:52:57 +01:00
|
|
|
|
2022-02-06 08:31:37 +01:00
|
|
|
.PHONY: all memtest-f000.901465.bin memtest-f000.901465.o65 ascii memtest-f000.901465+ascii.o65 emu5602
|
2022-02-06 06:52:57 +01:00
|
|
|
|
|
|
|
all: memtest-f000.901465.bin ascii emu5602
|
|
|
|
|
|
|
|
clean:
|
2022-02-06 08:31:37 +01:00
|
|
|
rm -f memtest-f000.901465.bin memtest-f000.901465.o65 memtest-f000.901465.map
|
|
|
|
rm -f memtest-f000.901465+ascii.bin memtest-f000.901465+ascii.o65 memtest-f000.901465+ascii.map
|
2022-02-06 06:52:57 +01:00
|
|
|
rm -f emu6502
|
|
|
|
|
2022-02-06 08:31:37 +01:00
|
|
|
memtest-f000.901465.bin: memtest-f000.901465.o65
|
|
|
|
dd if=memtest-f000.901465.o65 bs=1 skip=2 of=memtest-f000.901465.bin
|
2022-02-06 06:52:57 +01:00
|
|
|
|
2022-02-06 08:31:37 +01:00
|
|
|
memtest-f000.901465.o65:
|
|
|
|
xa -M -A F000 -O PETSCREEN -c -C -v -l memtest-f000.901465.map -o memtest-f000.901465.o65 memtest-f000.901465.asm
|
2022-02-06 06:52:57 +01:00
|
|
|
|
2022-02-06 08:31:37 +01:00
|
|
|
ascii: memtest-f000.901465+ascii.o65
|
|
|
|
dd if=memtest-f000.901465+ascii.o65 bs=1 skip=2 of=memtest-f000.901465+ascii.bin
|
2022-02-06 06:52:57 +01:00
|
|
|
|
2022-02-06 08:31:37 +01:00
|
|
|
memtest-f000.901465+ascii.o65:
|
|
|
|
xa -M '-D_MEMEND=$$1000' -A F000 -O ASCII -c -C -v -l memtest-f000.901465+ascii.map -o memtest-f000.901465+ascii.o65 memtest-f000.901465.asm
|
2022-02-06 06:52:57 +01:00
|
|
|
|
|
|
|
|
|
|
|
emu5602:
|
2022-02-06 08:31:37 +01:00
|
|
|
gcc -D_END=$$(cat memtest-f000.901465+ascii.map | grep ^done, | cut -d, -f2 | tr -d ' ,') -o emu6502 emu6502.c fake6502.c
|