Commit eebb22cd authored by Khoi Lam's avatar Khoi Lam 💬
Browse files

Added register table towards the end

parent 99c98087
......@@ -160,6 +160,8 @@ def run_cpu(imem, dmem, symbols, debug):
if val & 0b1 == 0b1:
# exit
print (f"SYSCALL: exit ({val>>1})")
print("--------------------Final register values-----------------------")
my_reg.display()
sys.exit(val>>1)
if val & 0b0 == 0b0:
......@@ -185,7 +187,7 @@ def run_cpu(imem, dmem, symbols, debug):
if __name__ == "__main__":
if len(sys.argv) == 1:
program_file = "riscv_isa/programs/hello" # default instruction file
program_file = "riscv_isa/programs/return" # default instruction file
else:
program_file = sys.argv[1] # or choose another file
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment