rubyx/test/risc/position/helper.rb
2018-06-06 10:00:07 +03:00

24 lines
391 B
Ruby

require_relative "../helper"
module Risc
class Dummy
def padded_length
4
end
def byte_length
4
end
end
class DummyInstruction < Dummy
include Util::List
def initialize(nekst = nil)
@next = nekst
end
def insert(instruction)
ret = super
Position.get(self).trigger_inserted if Position.set?(self)
ret
end
end
end