Esempio n. 1
0
        public CPU()
        {
            Memory    = new CPUMemory();
            Registers = new CPURegisters();

            OpCodeHandlers = new Dictionary <byte, OpCodeHandler>();

            InitializeOpCodeHandlers();
        }
Esempio n. 2
0
        public byte Execute(CPUMemory memory, CPURegisters registers, byte operand1, byte operand2)
        {
            var executionCycles = Operation.Execute(OpCodeDefinition, AddressingMode, memory, registers, operand1, operand2);

            return(executionCycles);
        }