Started to use the file named rom as the bootstrap binary
This commit is contained in:
parent
a0c96014e0
commit
38a5642a3f
|
@ -3,5 +3,5 @@ tmp/
|
|||
__pycache__/
|
||||
libvm.so
|
||||
tape_*
|
||||
rom
|
||||
z_disassembled
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
20
makefile
20
makefile
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue