add branch listener functionaliy

have to store the branches and loop again as labels
dont neccessarily have positions yet
This commit is contained in:
Torsten Ruger
2018-06-17 22:25:38 +03:00
parent 3298651238
commit 046617f8dc
6 changed files with 46 additions and 13 deletions

View File

@ -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)