diff options
| author | Jan Tuomi <jans.tuomi@gmail.com> | 2023-03-28 21:27:05 +0300 |
|---|---|---|
| committer | Jan Tuomi <jans.tuomi@gmail.com> | 2023-03-28 21:27:05 +0300 |
| commit | 10e0c53890701abe53c80f1da4a0b64bbd05914c (patch) | |
| tree | df5f9bdd09c4e21a8722e5153408aae872308571 /Makefile | |
Initial commit
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 22 |
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) |
