1
0
mirror of https://github.com/rzzzwilson/pymlac.git synced 2025-06-10 09:32:41 +00:00
2016-01-20 11:23:18 +07:00

33 lines
824 B
Makefile

#
# Simple make file just to clean this directory.
# And run the test files.
#
test:
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