rubyx/lib/register/instructions/function_call.rb
2015-07-27 12:13:39 +03:00

19 lines
371 B
Ruby

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 source , method
super(source)
@method = method
end
attr_reader :method
def to_s
"FunctionCall: #{method.name}"
end
end
end