add branch listener functionaliy
have to store the branches and loop again as labels dont neccessarily have positions yet
This commit is contained in:
@ -37,6 +37,14 @@ module Risc
|
||||
DummyInstruction.new
|
||||
end
|
||||
end
|
||||
class DummyBranch < Branch
|
||||
attr_reader :precheck_called
|
||||
|
||||
def precheck
|
||||
@precheck_called = true
|
||||
end
|
||||
end
|
||||
|
||||
class DummyInstruction < Dummy
|
||||
include Util::List
|
||||
def initialize(nekst = nil)
|
||||
|
Reference in New Issue
Block a user