#
|
#
|
# Makefile to run some simulator tests
|
# Makefile to run some simulator tests
|
#
|
#
|
|
|
BUILD = ..
|
BUILD = ..
|
|
|
LOGFILE = run.log
|
LOGFILE = run.log
|
|
|
DSKNAME = system.disk
|
DSKNAME = system.disk
|
DSKSIZE = 14000
|
DSKSIZE = 14000
|
MBRNAME = mbr.bin
|
MBRNAME = mbr.bin
|
|
|
.PHONY: all clean
|
.PHONY: all clean
|
|
|
all:
|
all:
|
@echo "Please choose one of the following targets:"
|
@echo "Please choose one of the following targets:"
|
@echo " run-rom00 (test ROM byte order)"
|
@echo " run-rom00 (test ROM byte order)"
|
@echo " run-rom01 (one example of each instruction)"
|
@echo " run-rom01 (one example of each instruction)"
|
@echo " run-rom02 (terminal output, polled)"
|
@echo " run-rom02 (terminal output, polled)"
|
@echo " run-rom03 (terminal echo, polled)"
|
@echo " run-rom03 (terminal echo, polled)"
|
@echo " run-rom04 (\"Hello, world!\")"
|
@echo " run-rom04 (\"Hello, world!\")"
|
@echo " run-rom05 (\"Hello, world!\", on terminal 1)"
|
@echo " run-rom05 (\"Hello, world!\", on terminal 1)"
|
@echo " run-rom06 (crossed echo with two terminals)"
|
@echo " run-rom06 (crossed echo with two terminals)"
|
@echo " run-rom07 (string output to output device)"
|
@echo " run-rom07 (string output to output device)"
|
|
@echo " run-rom08 (string output with delay loop)"
|
|
@echo " run-rom09 (string output with timing loop)"
|
@echo " run-rom10 (console character attributes)"
|
@echo " run-rom10 (console character attributes)"
|
@echo " run-romboot (ROM bootstrapping disk)"
|
@echo " run-romboot (ROM bootstrapping disk)"
|
@echo " clean"
|
@echo " clean"
|
|
|
$(DSKNAME):
|
$(DSKNAME):
|
./mkdisk $(DSKNAME) $(DSKSIZE)
|
./mkdisk $(DSKNAME) $(DSKSIZE)
|
./wrtmbr $(DSKNAME) $(MBRNAME)
|
./wrtmbr $(DSKNAME) $(MBRNAME)
|
|
|
run-rom00:
|
run-rom00:
|
$(BUILD)/bin/sim -i -r rom00.bin
|
$(BUILD)/bin/sim -i -r rom00.bin
|
|
|
run-rom01:
|
run-rom01:
|
$(BUILD)/bin/sim -i -r rom01.bin
|
$(BUILD)/bin/sim -i -r rom01.bin
|
|
|
run-rom02:
|
run-rom02:
|
$(BUILD)/bin/sim -i -r rom02.bin -t 1
|
$(BUILD)/bin/sim -i -r rom02.bin -t 1
|
|
|
run-rom03:
|
run-rom03:
|
$(BUILD)/bin/sim -i -r rom03.bin -t 1
|
$(BUILD)/bin/sim -i -r rom03.bin -t 1
|
|
|
run-rom04:
|
run-rom04:
|
$(BUILD)/bin/sim -i -r rom04.bin -t 1
|
$(BUILD)/bin/sim -i -r rom04.bin -t 1
|
|
|
run-rom05:
|
run-rom05:
|
$(BUILD)/bin/sim -i -r rom05.bin -t 2
|
$(BUILD)/bin/sim -i -r rom05.bin -t 2
|
|
|
run-rom06:
|
run-rom06:
|
$(BUILD)/bin/sim -i -r rom06.bin -t 2
|
$(BUILD)/bin/sim -i -r rom06.bin -t 2
|
|
|
run-rom07:
|
run-rom07:
|
$(BUILD)/bin/sim -i -r rom07.bin -o $(LOGFILE)
|
$(BUILD)/bin/sim -i -r rom07.bin -o $(LOGFILE)
|
|
|
|
run-rom08:
|
|
$(BUILD)/bin/sim -i -r rom08.bin -t 1
|
|
|
|
run-rom09:
|
|
$(BUILD)/bin/sim -i -r rom09.bin -t 1
|
|
|
run-rom10:
|
run-rom10:
|
$(BUILD)/bin/sim -i -r rom10.bin -c
|
$(BUILD)/bin/sim -i -r rom10.bin -c
|
|
|
run-romboot: $(DSKNAME)
|
run-romboot: $(DSKNAME)
|
$(BUILD)/bin/sim -i -r romboot.bin -t 1 -d $(DSKNAME)
|
$(BUILD)/bin/sim -i -r romboot.bin -t 1 -d $(DSKNAME)
|
|
|
clean:
|
clean:
|
rm -f *~ $(LOGFILE) $(DSKNAME)
|
rm -f *~ $(LOGFILE) $(DSKNAME)
|
|
|