rubyx/lib/register/instructions/load_constant.rb
2015-05-31 17:54:36 +03:00

15 lines
328 B
Ruby

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