rubyx/lib/register/instructions/load_constant.rb
Torsten Ruger eeaf2d97de starting to clear up slots
mostly docs
2015-06-20 23:49:30 +03:00

15 lines
328 B
Ruby

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