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 ExecutionEngine(Die die)
        {
            _die = die;
            _interruptManager = new InterruptManager(_die);

            StartFetch();

            // the engine that drives it all
            _die.Clock.OnChanged += Clock_OnChanged;
        }