2018-03-14 13:06:55 +01:00
|
|
|
module Mom
|
|
|
|
|
|
|
|
#SlotMove is a SlotLoad where the right side is a slot, just like the left.
|
|
|
|
class SlotMove < SlotLoad
|
|
|
|
|
2018-03-14 15:56:13 +01:00
|
|
|
def initialize(left , right)
|
|
|
|
right = SlotDefinition.new(right.shift , right) if right.is_a? Array
|
|
|
|
super(left , right)
|
|
|
|
end
|
|
|
|
|
|
|
|
def to_risc(context)
|
|
|
|
Risc::Label.new(self,"SlotMove")
|
2018-03-14 13:06:55 +01:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|