finished init routine

and better implemented sys calls
This commit is contained in:
Torsten Ruger
2015-06-25 16:31:09 +03:00
parent cedc6e1b61
commit 32e1903884
10 changed files with 57 additions and 26 deletions

View File

@ -33,7 +33,7 @@ module Register
tmp = RegisterReference.tmp_reg
# for constants we have to "move" the constants value
if( code.from.is_a?(Parfait::Value) or code.from.is_a?(Symbol))
move1 = LoadConstant.new( tmp , code.from )
move1 = LoadConstant.new( code.from , tmp )
else # while otherwise we "load"
move1 = GetSlot.new( code.from.reg , code.from.index , tmp )
end