From 756c606af68be8ccca7aced3b9c3d56fb2d5087f Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Mon, 6 Jul 2020 20:04:41 -0400 Subject: - Implemented a new opcode table. - Added a new preifx called the OF prefix, which adds the contents of a specific register to the current operand. - Added a table generator, which parses opcode table csv files. --- Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 0bf43f0..454ea42 100644 --- a/Makefile +++ b/Makefile @@ -37,11 +37,14 @@ 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) -OBJS2 = subasm.o subeditor.o + OBJ_NAME = cisc-0.2 OBJ_NAME2 = subeditor-c +OBJ_NAME3 = opcode-gen all : clean $(OBJ_NAME) @@ -49,11 +52,12 @@ subeditor : clean $(OBJS2) $(CC) $(OBJS2) $(CFLAGS) -lcurses -ltinfo -o $(OBJ_NAME2) cisc-0.2: $(OBJS) $(CC) $(OBJS) $(CFLAGS) -lpthread -lcurses -ltinfo -o $(OBJ_NAME) - +opcode-gen : clean $(OBJS3) + $(CC) $(OBJS3) $(CFLAGS) -o $(OBJ_NAME3) %.o : %.c $(CC) -c $< -o $@ $(CFLAGS) clean : - rm -f $(OBJ_NAME) $(OBJ_NAME2) *.o + rm -f $(OBJ_NAME) $(OBJ_NAME2) $(OBJ_NAME3) *.o install : install -D -m755 $(OBJ_NAME) $(BIN_DIR)/$(OBJ_NAME) uninstall : -- cgit v1.2.3-13-gbd6f