1
0
mirror of https://github.com/rzzzwilson/pymlac.git synced 2025-06-10 09:32:41 +00:00
2016-02-26 17:53:31 +07:00

36 lines
969 B
Makefile

#
# Simple make file just to clean this directory.
# And run the test files.
#
test:
pymlac -b ptr -c -ptr dumpmem_test.ptp -t 040,045:050,052:055,060:065,066:071,077:0100,0110:03700,03761:03766,03777 -r 040 -r 0100
test_debug:
rm -f test.ptr test.ptp CPU.test.trace test_CPU.log
./make_ptr > test.ptr
python test_CPU.py CPU.test
#python test_Display.py # interactive!
@echo "########## Run 'python test_Display.py' by hand! ##########"
#python test_KBD.py # interactive!
@echo "########## Run 'python test_KBD.py' by hand! ##########"
python test_Memory.py
python test_PTR_PTP.py
python test_TTYIN.py
python test_TTYOUT.py
%: %.ptp
./pymlac -b ptr -ptr $< -r 040 -t 0100 -r 0100
diff pymlac.trace good_$*.trace | head -10
mv pymlac.trace $*.trace
%.ptp: %.asm
../iasm/iasm -l $*.lst $<
lst: $(TESTS)
../iasm/iasm -l $*.lst $<
clean:
rm -Rf *.pyc *~ *.out test_*.ptp *.lst test_*.trace _#*#_.* CPU.test.trace.* test.ptr