rubyx/lib/virtual/instructions/set.rb

15 lines
407 B
Ruby
Raw Normal View History

module Virtual
# class for Set instructions, A set is basically a mem move.
2015-05-30 11:20:39 +02:00
# to and from are indexes into the known objects(frame,message,self and new_message),
# these are represented as slots (see there)
# from may be a Constant (Object,Integer,String,Class)
class Set < Instruction
def initialize from , to
@from = from
@to = to
end
attr_reader :from , :to
end
end