Started to use the file named rom as the bootstrap binary

This commit is contained in:
Jeremiah Orians 2016-08-20 13:30:03 -04:00
parent a0c96014e0
commit 38a5642a3f
No known key found for this signature in database
GPG Key ID: 7457821534D2ACCD
3 changed files with 19 additions and 5 deletions

2
.gitignore vendored
View File

@ -3,5 +3,5 @@ tmp/
__pycache__/
libvm.so
tape_*
rom
z_disassembled

View File

@ -2,7 +2,7 @@ import subprocess
import ctypes
import re
subprocess.call("./bin/dis foo | sponge z_disassembled", shell=True)
subprocess.call("./bin/dis rom | sponge z_disassembled", shell=True)
vm = ctypes.CDLL('./libvm.so')
vm.get_memory.argtype = ctypes.c_uint

View File

@ -6,9 +6,6 @@ libvm: wrapper.c vm_instructions.c vm_decode.c vm.h
vm: vm.h vm.c vm_instructions.c vm_decode.c
gcc -ggdb vm.h vm.c vm_instructions.c vm_decode.c -o bin/vm
clean:
rm libvm.so bin/vm
production: libvm-production vm-production
libvm-production: wrapper.c vm_instructions.c vm_decode.c vm.h
@ -16,3 +13,20 @@ libvm-production: wrapper.c vm_instructions.c vm_decode.c vm.h
vm-production: vm.h vm.c vm_instructions.c vm_decode.c
gcc vm.h vm.c vm_instructions.c vm_decode.c -o vm
development: vm libvm asm dis
asm: High_level_prototypes/asm.c
gcc -ggdb High_level_prototypes/asm.c -o bin/asm
dis: High_level_prototypes/disasm.c
gcc -ggdb High_level_prototypes/disasm.c -o bin/dis
clean:
rm libvm.so bin/vm
clean-production:
rm libvm.so bin/vm
clean-development:
rm libvm.so bin/vm bin/asm bin/dis