aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..f3366b0
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,22 @@
+.PHONY: all
+
+py = /usr/bin/env python3
+digital_path = $(HOME)/.local/share/Digital/digital.jar
+
+start-digital:
+ java -jar $(digital_path) &
+
+# make assemble asm=src/program.atk16 out=out/program.bin
+assemble:
+ $(py) src/assembler.py $(asm) $(out)
+
+# make gen-ucode out=out/ucode.bin
+gen-ucode:
+ $(py) src/ucode.py $(out)
+
+# make test
+test:
+ $(py) src/test_alu.py digital/atk16_alu.dig
+
+run-single-test:
+ java -cp $(digital_path) CLI test -verbose -circ $(circ) -tests $(tests)