function now returns locals, not free registers

This commit is contained in:
Torsten Ruger
2014-05-21 16:42:36 +03:00
parent e1f889fd10
commit 2df2dcc528
7 changed files with 22 additions and 26 deletions

View File

@ -13,7 +13,7 @@ class TestSmallProg < MiniTest::Test
end
def test_loop
s = Vm::Block.new("start").scope binding
s = Vm::Block.new("start",nil).scope binding
m = @program.main.scope binding
r0 = Vm::Integer.new(0)
m.r0 = 5 #1