public ExecutionEngine(CpuZ80 cpu) { _cpu = cpu; _interruptManager = new InterruptManager(_cpu); StartFetch(); // the engine that drives it all _cpu.Clock.OnChanged += Clock_OnChanged; }
public InterruptManager(CpuZ80 cpu) : base(cpu) { // NMI is edge triggered cpu.NonMaskableInterrupt.OnChanged += NonMaskableInterupt_OnChanged; }