mirror of
https://github.com/Treeki/WindEmu.git
synced 2025-06-26 10:11:30 +00:00
add a very basic debugger UI
This commit is contained in:
@ -6,7 +6,6 @@
|
||||
|
||||
|
||||
Emu::Emu() {
|
||||
configure();
|
||||
}
|
||||
|
||||
|
||||
@ -464,7 +463,10 @@ void Emu::loadROM(const char *path) {
|
||||
}
|
||||
|
||||
void Emu::executeUntil(int64_t cycles) {
|
||||
while (!asleep && cpu.cycles <= cycles) {
|
||||
if (!configured)
|
||||
configure();
|
||||
|
||||
while (!asleep && cpu.cycles < cycles) {
|
||||
if (cpu.cycles >= nextTickAt) {
|
||||
// increment RTCDIV
|
||||
if ((pwrsr & 0x3F) == 0x3F) {
|
||||
|
@ -82,4 +82,5 @@ public:
|
||||
void dumpRAM(const char *path);
|
||||
void executeUntil(int64_t cycles);
|
||||
int64_t currentCycles() const { return cpu.cycles; }
|
||||
uint32_t getGPR(int index) const { return cpu.gprs[index]; }
|
||||
};
|
||||
|
Reference in New Issue
Block a user