Fixing the rom reset and adding an open rom button

This commit is contained in:
Zoe Roux
2021-07-06 20:46:36 +02:00
parent c38dfefd73
commit 0d0dbc9b02
7 changed files with 36 additions and 13 deletions
+4
View File
@@ -209,6 +209,8 @@ namespace ComSquare::CPU
unsigned CPU::update(unsigned maxCycles)
{
if (this->isDisabled)
return 0xFF;
unsigned cycles = this->runDMA(maxCycles);
while (cycles < maxCycles) {
@@ -221,6 +223,8 @@ namespace ComSquare::CPU
if (!this->_isWaitingForInterrupt)
cycles += this->executeInstruction();
else
return 0xFF;
}
return cycles;
}
+3
View File
@@ -647,6 +647,9 @@ namespace ComSquare::CPU
//! @brief Is an abort requested
bool IsAbortRequested = false;
//! @brief True if you want to disable updates of this CPU.
bool isDisabled = false;
#ifdef DEBUGGER_ENABLED
friend Debugger::CPU::CPUDebug;
friend Debugger::RegisterViewer;