Example #1
0
        public ExecutionEngine(CpuZ80 cpu)
        {
            _cpu = cpu;
            _interruptManager = new InterruptManager(_cpu);

            StartFetch();

            // the engine that drives it all
            _cpu.Clock.OnChanged += Clock_OnChanged;
        }
Example #2
0
 public InterruptManager(CpuZ80 cpu)
     : base(cpu)
 {
     // NMI is edge triggered
     cpu.NonMaskableInterrupt.OnChanged += NonMaskableInterupt_OnChanged;
 }