add reg to slot

This commit is contained in:
Torsten Ruger
2018-04-06 20:21:14 +03:00
parent fe71ddc5ae
commit cae5e323ec
5 changed files with 42 additions and 19 deletions

View File

@ -44,5 +44,12 @@ module Risc
assert_equal @r0 , instr.register
assert_equal 4 , instr.index
end
def test_reg_to_slot
instr = @r0 >> @r1[:first_message]
assert_equal RegToSlot , instr.class
assert_equal @r1 , instr.array
assert_equal @r0 , instr.register
assert_equal 4 , instr.index
end
end
end