using function args for call
This commit is contained in:
parent
65cde70114
commit
bc278a61eb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user