diff --git a/lib/register/call_implementation.rb b/lib/register/call_implementation.rb index bd1c937d..0b60a482 100644 --- a/lib/register/call_implementation.rb +++ b/lib/register/call_implementation.rb @@ -10,11 +10,8 @@ module Register def run block block.codes.dup.each do |code| next unless code.is_a? Virtual::FunctionCall - to = RegisterReference.new(:r0) - tmp = RegisterReference.new(:r5) -# move = RegisterMachine.instance.ldr( to , tmp , code.to.index ) -# block.replace(code , [move] ) - + call = RegisterMachine.instance.call( code.method ) + block.replace(code , [call] ) end end end