rubyx/lib/register/instructions/load_constant.rb
Torsten Ruger 32e1903884 finished init routine
and better implemented sys calls
2015-06-25 16:31:09 +03:00

15 lines
404 B
Ruby

module Register
# load a constant into a register
#
# first is the actual constant, either immediate register or object reference (from the space)
# second argument is the register the constant is loaded into
class LoadConstant < Instruction
def initialize constant , register
@register = register
@constant = constant
end
attr_accessor :register , :constant
end
end