From 7e57608dff1e768d2ee5d6b6a28a319865530ed0 Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Thu, 13 Aug 2020 17:25:09 -0400 Subject: Refactored get_addr(), and all of the effective address handling. It's now all done using several functions for each addressing mode, with the result being the effective address. I did this to make the codebase cleaner, and more readable. --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 454ea42..4f234e4 100644 --- a/Makefile +++ b/Makefile @@ -35,12 +35,18 @@ else IO_CFLAGS=-DIO=0 endif +ifdef GET_CLK +CLK_CFLAGS=-Dgetclk=1 +else +CLK_CFLAGS=-Dgetclk=0 +endif + OBJS = sux.o io.o $(DBG_OBJ) asmmon.o assemble.o lexer.o OBJS2 = subasm.o subeditor.o OBJS3 = opcode-gen.o csv-parse.o -CFLAGS = $(PCC_CFLAGS) $(DBG_CFLAGS) $(IO_CFLAGS) $(BENCH_CFLAGS) $(CFLAGS_EXTRA) +CFLAGS = $(PCC_CFLAGS) $(DBG_CFLAGS) $(IO_CFLAGS) $(CLK_CFLAGS) $(BENCH_CFLAGS) $(CFLAGS_EXTRA) OBJ_NAME = cisc-0.2 OBJ_NAME2 = subeditor-c -- cgit v1.2.3-13-gbd6f