using function args for call

This commit is contained in:
Torsten Ruger 2014-05-21 21:12:46 +03:00
parent 65cde70114
commit bc278a61eb

View File

@ -14,9 +14,9 @@ module Vm
def load_args into
args.each_with_index do |arg , index|
if arg.is_a?(IntegerConstant) or arg.is_a?(StringConstant)
Vm::Integer.new(index).load into , arg
function.args[index].load into , arg
else
Vm::Integer.new(index).move( into, arg ) if arg.register != index
function.args[index].move( into, arg ) if arg.register != index
end
end
end