move the if logic around (execute false first) and fix the parameters passing

This commit is contained in:
Torsten Ruger
2014-05-25 11:35:45 +03:00
parent 5a5b016a7e
commit 5afa6f4239
7 changed files with 21 additions and 19 deletions

View File

@@ -16,7 +16,7 @@ module Vm
if arg.is_a?(IntegerConstant) or arg.is_a?(StringConstant)
function.args[index].load into , arg
else
function.args[index].move( into, arg ) if arg.register != args[index].register
function.args[index].move( into, arg ) if arg.register != function.args[index].register
end
end
end