first resolved call running though

and returning an int, as it should
just the value .  .  .
This commit is contained in:
Torsten Ruger
2018-04-08 23:45:23 +03:00
parent fabe4db4f6
commit 59e6298879
4 changed files with 50 additions and 20 deletions

View File

@ -91,11 +91,11 @@ module Risc
def execute_Label
true
end
# Instruction interpretation starts here
def execute_DynamicJump
label = get_register(@instruction.register)
puts "Jump to :#{label}:"
set_instruction label
method = get_register(@instruction.register)
set_instruction( method.risc_instructions )
end
def execute_Branch
label = @instruction.label