rubyx/lib/register/instructions/load_constant.rb

15 lines
328 B
Ruby
Raw Normal View History

module Register
# load a constant into a register
#
2015-06-20 22:49:30 +02:00
# first argument is the register the constant is loaded into
# second is the actual constant
class LoadConstant < Instruction
def initialize value , constant
@value = value
@constant = constant
end
attr_accessor :value , :constant
end
end