fix init method message setup

was causing errors in interpreter
(that may have gone unnoticed in arm, as the interpreter checks stuff)
This commit is contained in:
Torsten Ruger
2018-03-24 15:59:54 +02:00
parent 65d3d5f1c9
commit 267237b776
4 changed files with 78 additions and 11 deletions

View File

@ -18,9 +18,15 @@ module Risc
assert_equal 5 , produced.constant.value
end
def test_slot_move
def test_frame_load
produced = produce_body
assert_equal :Message , produced.next(1).array.type
assert_equal 4 , produced.next(1).index # 4 is frame
end
def test_value_load
produced = produce_body
assert_equal produced.next(2).register , produced.register
assert_equal 2 , produced.next(2).index #type == 1 , r == 2
end
end