public CPU() { Memory = new CPUMemory(); Registers = new CPURegisters(); OpCodeHandlers = new Dictionary <byte, OpCodeHandler>(); InitializeOpCodeHandlers(); }
public byte Execute(CPUMemory memory, CPURegisters registers, byte operand1, byte operand2) { var executionCycles = Operation.Execute(OpCodeDefinition, AddressingMode, memory, registers, operand1, operand2); return(executionCycles); }