- Log instructions to debugger using experiment flag - Use BitmapManager for more functionality - Draw framebuffer and integrated debugger
54 lines
1.2 KiB
C++
54 lines
1.2 KiB
C++
#ifndef YAZE_APP_CORE_EMULATOR_H
|
|
#define YAZE_APP_CORE_EMULATOR_H
|
|
|
|
#include <cstdint>
|
|
#include <vector>
|
|
|
|
#include "app/emu/snes.h"
|
|
#include "app/rom.h"
|
|
|
|
namespace yaze {
|
|
namespace app {
|
|
namespace emu {
|
|
|
|
class Emulator : public SharedROM {
|
|
public:
|
|
// Runs the emulator loop, including event handling and rendering
|
|
void Run();
|
|
|
|
private:
|
|
// Renders the emulator output to an ImGui child window
|
|
void RenderEmulator();
|
|
|
|
// Draws the navigation bar with various controls
|
|
void RenderNavBar();
|
|
|
|
// Handles user input events
|
|
void HandleEvents();
|
|
|
|
// Updates the emulator state (CPU, PPU, APU, etc.)
|
|
void UpdateEmulator();
|
|
|
|
void RenderDebugger();
|
|
void RenderCpuState(CPU& cpu);
|
|
void RenderMemoryViewer();
|
|
|
|
void RenderCPUInstructionLog(
|
|
const std::vector<InstructionEntry>& instructionLog);
|
|
|
|
// Member variables to store internal state and resources
|
|
SNES snes_;
|
|
|
|
bool running_ = false;
|
|
bool debugger_ = false;
|
|
bool loading_ = false;
|
|
bool show_ppu_reg_viewer_ = false;
|
|
bool integrated_debugger_mode_ = true;
|
|
bool separate_debugger_mode_ = false;
|
|
};
|
|
|
|
} // namespace emu
|
|
} // namespace app
|
|
} // namespace yaze
|
|
|
|
#endif // YAZE_APP_CORE_EMULATOR_H
|