Esempio n. 1
0
        protected virtual void OnInstruction(Instruction instruction)
        {
            CpuEventHandler <InstructionEventArgs> handler = Instruction;

            if (handler != null)
            {
                InstructionEventArgs args = new InstructionEventArgs
                {
                    OpCode = instruction.OpCode,
                    Cycles = instruction.Cycles
                };

                handler(this, args);
            }
        }
Esempio n. 2
0
        protected virtual void OnCycle()
        {
            CpuEventHandler handler = Cycle;

            handler?.Invoke(this);
        }