Adding icons and a resume/pause button

This commit is contained in:
Anonymus Raccoon
2020-02-16 20:11:14 +01:00
parent c6f9f09f09
commit 6e889fc5c9
10 changed files with 160 additions and 59 deletions
+2 -4
View File
@@ -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) {