From f67f6de0b696c45f5728373165f13d457fb9b8c8 Mon Sep 17 00:00:00 2001 From: Joseph Ferano Date: Tue, 21 Jan 2025 14:50:03 +0700 Subject: [PATCH] Update building and testing for new odin code --- .gitignore | 1 + Makefile | 8 ++++---- test_asm.sh | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index ff23a1f..1a0dc2f 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /.idea/ /asm_files/*.bin /8086_family_Users_Manual_1_.pdf +/decoder8086 diff --git a/Makefile b/Makefile index c71e396..021b83a 100644 --- a/Makefile +++ b/Makefile @@ -9,16 +9,16 @@ bin_files = $(patsubst %.asm,%.bin,$(asm_files)) all: decode asm_files -decode: decode.c decode.h lib.h - $(CC) $(CFLAGS) $< -o $@ +decode: decoder8086.odin + odin build decoder8086.odin -file asm_files: $(bin_files) %.bin: %.asm nasm $< -o $@ run: all - ./decode + ./decode8086 clean: - rm -vf *.so *.o decode $(bin_files) + rm -vf *.so *.o decoder8086 $(bin_files) diff --git a/test_asm.sh b/test_asm.sh index 77971f6..042bf78 100755 --- a/test_asm.sh +++ b/test_asm.sh @@ -8,7 +8,7 @@ make asm_files > /dev/null for ASM_BIN in asm_files/*.bin; do - ./decode "$ASM_BIN" > output.asm 2> /dev/null + ./decoder8086 "$ASM_BIN" > output.asm 2> /dev/null nasm output.asm -o output.bin 2> /dev/null ASM_FILE=${ASM_BIN%.*}.asm if [ ! -e output.bin ]; then