linked list of methods instead of list of methods
api changes slightly, especially for each, but mostly sama sama
This commit is contained in:
@ -99,6 +99,11 @@ module Risc
|
||||
true
|
||||
end
|
||||
# Instruction interpretation starts here
|
||||
def execute_DynamicJump
|
||||
label = get_register(@instruction.register)
|
||||
puts "Jump to :#{label}:"
|
||||
set_instruction label
|
||||
end
|
||||
def execute_Branch
|
||||
label = @instruction.label
|
||||
set_instruction label
|
||||
|
Reference in New Issue
Block a user