feat: Refactor Emulator to Accept ROM Parameter and Enhance Logging

- Updated Emulator::Run method to accept a Rom* parameter, improving flexibility in ROM handling.
- Refactored texture creation and ROM data initialization to utilize the new parameter.
- Enhanced logging in Snes class to provide detailed information during initialization, reset, and frame processing, aiding in debugging and performance monitoring.
- Introduced cycle tracking in Apu and Spc700 classes for accurate synchronization and debugging.
- Added unit tests for APU DSP functionality and IPL ROM handshake to ensure reliability and correctness of audio processing.
This commit is contained in:
scawful
2025-10-06 11:41:33 -04:00
parent e58bc3f007
commit a881c0f8e1
16 changed files with 922 additions and 79 deletions

View File

@@ -21,6 +21,9 @@ if(YAZE_BUILD_TESTS AND NOT YAZE_BUILD_TESTS STREQUAL "OFF")
add_executable(
yaze_test
yaze_test_ci.cc
# Emulator unit tests
unit/emu/apu_dsp_test.cc
unit/emu/spc700_reset_test.cc
test_editor.cc
test_editor.h
testing.h
@@ -85,6 +88,9 @@ if(YAZE_BUILD_TESTS AND NOT YAZE_BUILD_TESTS STREQUAL "OFF")
add_executable(
yaze_test
yaze_test.cc
# Emulator unit tests
unit/emu/apu_dsp_test.cc
unit/emu/spc700_reset_test.cc
test_editor.cc
test_editor.h
testing.h