Add step mode to snes emulator

This commit is contained in:
scawful
2023-12-05 03:47:06 -05:00
parent 5755e2e867
commit dad4a38f59
4 changed files with 41 additions and 33 deletions

View File

@@ -33,6 +33,9 @@ class SNES : public DMA {
// Main emulation loop
void Run();
// Step through a single instruction
void StepRun();
// Enable NMI Interrupts
void EnableVBlankInterrupts();
@@ -56,10 +59,6 @@ class SNES : public DMA {
void SaveState(const std::string& path);
void LoadState(const std::string& path);
// Debugger
void Debug();
void Breakpoint(uint16_t address);
bool running() const { return running_; }
auto cpu() -> CPU& { return cpu_; }