1
0
mirror of https://github.com/rzzzwilson/pymlac.git synced 2025-06-10 09:32:41 +00:00
Files
rzzzwilson.pymlac/pymlac/Makefile
2016-06-16 16:49:30 +07:00

42 lines
1.3 KiB
Makefile

#
# Simple make file just to clean this directory.
# And run the test files.
#
PYTHON=python3
test:
rm -f test.ptr test.ptp CPU.test.trace test_CPU.log pymlac.trace
$(PYTHON) test_CPU.py dumpmem.test
./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
@echo "*********************"
@echo "* Tests successful! *"
@echo "*********************"
test_debug:
#pymlac -b ptr -c -ptr dumpmem_test_c8lds.ptp -t 040,045:050,052:055,060:065,066:071,077:03700,03767:03772,03777 -r 040 -t 0100,0110 -r 0100
pymlac -b tty -c -ttyin dumpmem_test_c8lds.ptp -t 040,045:050,052:055,060:063,077:03700,03767:03772,03777 -r 040 -t 0100,0110 -r 0100
%: %.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