From 8dbaea89ed3786269b4b230d6cd5bd594d7a3c9b Mon Sep 17 00:00:00 2001
From: Anonymus Raccoon
Date: Tue, 25 Feb 2020 22:35:04 +0100
Subject: [PATCH] Fixing the cpu's debugger witch was miss interpreting
instructions
---
sources/Debugger/CPUDebug.cpp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/sources/Debugger/CPUDebug.cpp b/sources/Debugger/CPUDebug.cpp
index 1f2c8f3..0441109 100644
--- a/sources/Debugger/CPUDebug.cpp
+++ b/sources/Debugger/CPUDebug.cpp
@@ -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;