move function call instruction to register level and the pass to arm

This commit is contained in:
Torsten Ruger 2014-10-03 14:32:54 +03:00
parent 1af66567fb
commit a083c03b1d
3 changed files with 12 additions and 7 deletions

View File

@ -0,0 +1,12 @@
module Register
# name says it all really
# only arg is the method object we want to call
# assembly takes care of the rest (ie getting the address)
class FunctionCall < Instruction
def initialize method
@method = method
end
attr_reader :method
end
end

View File

@ -18,11 +18,4 @@ module Virtual
attr_reader :name , :me , :args attr_reader :name , :me , :args
end end
class FunctionCall < Instruction
def initialize method
@method = method
end
attr_reader :method
end
end end