This commit is contained in:
Torsten Ruger
2018-07-30 10:26:47 +03:00
parent 2dc03f8d1b
commit 165036ea39
6 changed files with 8 additions and 16 deletions

View File

@ -18,6 +18,5 @@ module Parfait
def inspect
"#{@self_type.object_class.name}(#{arguments_type.inspect})"
end
end
end

View File

@ -110,7 +110,10 @@ module Risc
# Instruction interpretation starts here
def execute_DynamicJump
method = get_register(@instruction.register)
pos = Position.get(method.binary).at + Parfait::BinaryCode.byte_offset
pos = Position.get(method.binary)
log.debug "Jump to binary at: #{pos} #{method.name}:#{method.binary.class}"
raise "Invalid position for #{method.name}" unless pos.valid?
pos = pos + Parfait::BinaryCode.byte_offset
set_pc( pos )
false
end