Update building and testing for new odin code
This commit is contained in:
parent
0e4aebff13
commit
f67f6de0b6
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,3 +2,4 @@
|
|||||||
/.idea/
|
/.idea/
|
||||||
/asm_files/*.bin
|
/asm_files/*.bin
|
||||||
/8086_family_Users_Manual_1_.pdf
|
/8086_family_Users_Manual_1_.pdf
|
||||||
|
/decoder8086
|
||||||
|
8
Makefile
8
Makefile
@ -9,16 +9,16 @@ bin_files = $(patsubst %.asm,%.bin,$(asm_files))
|
|||||||
|
|
||||||
all: decode asm_files
|
all: decode asm_files
|
||||||
|
|
||||||
decode: decode.c decode.h lib.h
|
decode: decoder8086.odin
|
||||||
$(CC) $(CFLAGS) $< -o $@
|
odin build decoder8086.odin -file
|
||||||
|
|
||||||
asm_files: $(bin_files)
|
asm_files: $(bin_files)
|
||||||
%.bin: %.asm
|
%.bin: %.asm
|
||||||
nasm $< -o $@
|
nasm $< -o $@
|
||||||
|
|
||||||
run: all
|
run: all
|
||||||
./decode
|
./decode8086
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -vf *.so *.o decode $(bin_files)
|
rm -vf *.so *.o decoder8086 $(bin_files)
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ make asm_files > /dev/null
|
|||||||
|
|
||||||
for ASM_BIN in asm_files/*.bin;
|
for ASM_BIN in asm_files/*.bin;
|
||||||
do
|
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
|
nasm output.asm -o output.bin 2> /dev/null
|
||||||
ASM_FILE=${ASM_BIN%.*}.asm
|
ASM_FILE=${ASM_BIN%.*}.asm
|
||||||
if [ ! -e output.bin ]; then
|
if [ ! -e output.bin ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user