rubyx/lib/mom/instruction/jump.rb
2018-03-14 20:25:21 +05:30

18 lines
264 B
Ruby

module Mom
# unconditional jump to the instruction given as target
#
class Jump < Instruction
attr_reader :target
def initialize(target)
@target = target
end
def to_risc(context)
Risc::Label.new(self,"Jump")
end
end
end