mirror of
https://github.com/zoriya/ComSquare.git
synced 2026-06-03 10:26:36 +00:00
Fixing the rom reset and adding an open rom button
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user