rubyx/lib/register/instructions/load_constant.rb

15 lines
331 B
Ruby
Raw Normal View History

module Register
# load a constant into a register
#
# first arguemnt 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