simple call implementation

This commit is contained in:
Torsten Ruger 2014-08-26 11:58:28 +03:00
parent a3a55aec08
commit 7fd9ff44db

View File

@ -10,11 +10,8 @@ module Register
def run block def run block
block.codes.dup.each do |code| block.codes.dup.each do |code|
next unless code.is_a? Virtual::FunctionCall next unless code.is_a? Virtual::FunctionCall
to = RegisterReference.new(:r0) call = RegisterMachine.instance.call( code.method )
tmp = RegisterReference.new(:r5) block.replace(code , [call] )
# move = RegisterMachine.instance.ldr( to , tmp , code.to.index )
# block.replace(code , [move] )
end end
end end
end end