From 38a5642a3f555037f12b64d256ae31217a9b5716 Mon Sep 17 00:00:00 2001 From: Jeremiah Orians Date: Sat, 20 Aug 2016 13:30:03 -0400 Subject: [PATCH] Started to use the file named rom as the bootstrap binary --- .gitignore | 2 +- User_Interface.py | 2 +- makefile | 20 +++++++++++++++++--- 3 files changed, 19 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index a88abf1..6102bd8 100644 --- a/.gitignore +++ b/.gitignore @@ -3,5 +3,5 @@ tmp/ __pycache__/ libvm.so tape_* +rom z_disassembled - diff --git a/User_Interface.py b/User_Interface.py index f79e536..65133fe 100644 --- a/User_Interface.py +++ b/User_Interface.py @@ -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 diff --git a/makefile b/makefile index 916e193..45c001f 100644 --- a/makefile +++ b/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