コード例 #1
0
        public CPU()
        {
            Memory    = new CPUMemory();
            Registers = new CPURegisters();

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

            InitializeOpCodeHandlers();
        }
コード例 #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);
        }