fix dynamic jump

which gets dynamic resolve and call to work.
FIRST DYNAMIC CALL working
This commit is contained in:
Torsten Ruger
2018-04-09 15:06:46 +03:00
parent 59e6298879
commit d19bd5f98d
4 changed files with 29 additions and 22 deletions

View File

@ -25,8 +25,10 @@ module Mom
save_return = SlotLoad.new([:message,:next_message,:return_address],[return_label],self)
moves = save_return.to_risc(compiler)
moves << Risc.slot_to_reg(self, :message , :next_message , Risc.message_reg)
moves << Risc.load_constant(self , method.binary , jump_address)
moves << Risc::FunctionCall.new(self, method ,jump_address)
moves << return_label
end