From 28d6a88c02f10b75fb4c5cb46178d2ef71629494 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Thu, 1 Aug 2019 23:12:34 +1200 Subject: Refactor disassembler to move data through instruction list This refactors the disassembler into two stages with the list of struct instruction (currently also output by the parse stage) as an "intermediate language" between disassembly and assembler output. This should make these units, especially the "machine code => IL" section, more reusable for future soft emulation work. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 6edd47d..843ccca 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ ASM_OBJECTS = lex.o parse.o output.o assembler.o util.o -DISASM_OBJECTS = util.o +DISASM_OBJECTS = disassembler.o util.o input_bin.o output_asm.o all: assembler disassembler @@ -19,5 +19,5 @@ util.o: lex.h instruction.h clean: - rm -f assembler disasm $(ASM_OBJECTS) -test: +test: all make -C test test -- cgit v1.1