From 9aa02bebf295ce9436451e0ce85db7717a6c9f81 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Sun, 4 Aug 2019 00:13:59 +1200 Subject: Add initial emulator implementation This emulator provides a rough way for binaries designed for this CPU to be executed in a virtual/emulated CPU for testing purposes. This patch also adds a small test setup for automated assembly, execution and checking of register postconditions for programs. --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index b6d1e6d..99d04ae 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,8 @@ -EXECUTABLES = assembler disassembler asmcat bincat +EXECUTABLES = assembler disassembler emulator asmcat bincat ASM_OBJECTS = assembler.o lex.o parse.o output/output_bin.o util.o DISASM_OBJECTS = disassembler.o input/input_bin.o output/output_asm.o util.o +EMUL_OBJECTS = input/input_bin.o util.o ASMCAT_OBJECTS = asmcat.o lex.o parse.o output/output_asm.o util.o BINCAT_OBJECTS = bincat.o input/input_bin.o output/output_bin.o util.o @@ -16,6 +17,8 @@ assembler: $(ASM_OBJECTS) disassembler: $(DISASM_OBJECTS) +emulator: $(EMUL_OBJECTS) + asmcat: $(ASMCAT_OBJECTS) bincat: $(BINCAT_OBJECTS) -- cgit v1.1