add a very basic debugger UI

This commit is contained in:
Ash Wolf
2019-12-19 14:11:31 +00:00
parent 1d6e77ced8
commit 6a41ed1d76
5 changed files with 177 additions and 29 deletions

View File

@ -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) {

View File

@ -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]; }
};