mirror of
https://github.com/zoriya/ComSquare.git
synced 2026-06-01 09:45:25 +00:00
Adding icons and a resume/pause button
This commit is contained in:
+2
-4
@@ -190,14 +190,12 @@ namespace ComSquare::CPU
|
||||
unsigned cycles = 0;
|
||||
|
||||
for (int i = 0; i < 0xFF; i++)
|
||||
cycles += this->_executeInstruction();
|
||||
cycles += this->_executeInstruction(this->_bus->read(this->_registers.pac++));
|
||||
return cycles;
|
||||
}
|
||||
|
||||
unsigned CPU::_executeInstruction()
|
||||
unsigned CPU::_executeInstruction(uint8_t opcode)
|
||||
{
|
||||
uint8_t opcode = this->_bus->read(this->_registers.pc);
|
||||
|
||||
this->_hasIndexCrossedPageBoundary = false;
|
||||
|
||||
switch (opcode) {
|
||||
|
||||
Reference in New Issue
Block a user