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