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

@ -19,7 +19,8 @@ module Risc
RegToSlot, SlotToReg, SlotToReg, RegToSlot, SlotToReg,
SlotToReg, RegToSlot, SlotToReg, RegToSlot, SlotToReg,
RegToSlot, SlotToReg, SlotToReg, SlotToReg, RegToSlot,
LoadConstant, SlotToReg, DynamicJump]
LoadConstant, SlotToReg, RegToSlot, SlotToReg, LoadConstant,
SlotToReg, DynamicJump, Label]
end
def test_send_instructions
@ -37,7 +38,7 @@ module Risc
end
def test_function_call
produced = produce_body
assert_equal DynamicJump , produced.next(62).class
assert_equal DynamicJump , produced.next(66).class
end
def test_cache_check
produced = produce_body