From 7fd9ff44dbec072536238bf7adab5514c3df3741 Mon Sep 17 00:00:00 2001 From: Torsten Ruger Date: Tue, 26 Aug 2014 11:58:28 +0300 Subject: [PATCH] simple call implementation --- lib/register/call_implementation.rb | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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