Fixing the cpu's debugger witch was miss interpreting instructions

This commit is contained in:
Anonymus Raccoon
2020-02-25 22:35:04 +01:00
parent 38045afe15
commit 8dbaea89ed
+3 -1
View File
@@ -43,8 +43,10 @@ namespace ComSquare::Debugger
unsigned CPUDebug::_executeInstruction(uint8_t opcode)
{
if (this->_isPaused)
if (this->_isPaused) {
this->_registers.pac--;
return 0;
}
if (this->_isStepping) {
this->_isStepping = false;
this->_isPaused = true;