Dumps the state of WRAM and CPU/PPU registers after initialization. More...
Public Member Functions | |
DungeonTestHarness (const std::string &rom_path) | |
absl::Status | GenerateHarnessState (const std::string &output_path) |
Private Attributes | |
std::string | rom_path_ |
Dumps the state of WRAM and CPU/PPU registers after initialization.
This tool runs the SNES emulator from the Reset vector until it hits the main game loop. It then dumps the entire state of WRAM and relevant registers to a header file. This captured state can be used to initialize the emulator for test harnesses, providing a realistic environment for executing native game code.
Definition at line 21 of file dungeon_test_harness.cc.
|
inlineexplicit |
Definition at line 23 of file dungeon_test_harness.cc.
|
inline |
Definition at line 26 of file dungeon_test_harness.cc.
References yaze::emu::Snes::cpu(), yaze::emu::Snes::Init(), yaze::Rom::LoadFromFile(), yaze::emu::Snes::ppu(), yaze::emu::Snes::Read(), yaze::emu::Snes::Reset(), RETURN_IF_ERROR, rom_path_, yaze::emu::Snes::RunCycle(), and yaze::Rom::vector().
Referenced by main().
|
private |
Definition at line 111 of file dungeon_test_harness.cc.
Referenced by GenerateHarnessState().