loading label must translate the labels too

(psst: like arm translator already did. duh)
This commit is contained in:
Torsten Ruger
2018-05-24 19:20:06 +03:00
parent dae8e88b7a
commit 183d4152d5
7 changed files with 37 additions and 31 deletions

View File

@ -216,7 +216,7 @@ module Risc
meth = @instruction.method
at = Position.get(meth.binary).at
log.debug "Call to #{meth.name} at:#{at}"
set_pc(at + BinaryCode.offset)
set_pc(at + Parfait::BinaryCode.offset)
#set_instruction @instruction.method.risc_instructions
false
end
@ -224,9 +224,8 @@ module Risc
def execute_FunctionReturn
link = get_register( @instruction.register )
log.debug "Return to #{link}"
@instruction = link
# we jump back to the call instruction. so it is as if the call never happened and we continue
true
set_pc Position.get(link).at
false
end
def execute_Syscall