mirror of
https://github.com/zoriya/ComSquare.git
synced 2026-05-24 07:11:19 +00:00
Updating the debugger's ui when reseting the game
This commit is contained in:
+1
-1
@@ -446,7 +446,7 @@ namespace ComSquare::CPU
|
||||
void write(uint24_t addr, uint8_t data) override;
|
||||
|
||||
//! @brief Reset interrupt - Called on boot and when the reset button is pressed.
|
||||
void RESB();
|
||||
virtual void RESB();
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -212,4 +212,10 @@ namespace ComSquare::Debugger
|
||||
default: return "Unknown";
|
||||
}
|
||||
}
|
||||
|
||||
void CPUDebug::RESB()
|
||||
{
|
||||
CPU::RESB();
|
||||
this->_updateRegistersPanel();
|
||||
}
|
||||
}
|
||||
@@ -37,6 +37,8 @@ namespace ComSquare::Debugger
|
||||
//! @brief Step - Execute a single instruction.
|
||||
void step();
|
||||
public:
|
||||
//! @brief Update the UI when reseting the CPU.
|
||||
void RESB() override;
|
||||
//! @brief Convert a basic CPU to a debugging CPU.
|
||||
explicit CPUDebug(ComSquare::CPU::CPU &cpu, SNES &snes);
|
||||
CPUDebug(const CPUDebug &) = delete;
|
||||
|
||||
Reference in New Issue
Block a user