Repository navigation
Add VGM logging of YM2608 register writes - #41
Merged
Merged
Conversation
Machine logs the CPU's writes to the OPNA as a VGM 1.51 stream timed in emulated T-states, so x2 speed and pauses do not distort the result. Logging starts mid-song by writing the ADPCM RAM and the chip's effective register state, and survives resets and state loads by resyncing. Exposed as PC88.startVGMLogging / stopVGMLogging and the b88_vgm_* C ABI. BootTester writes a log with BOOTTEST_VGM. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
4 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
VGMLoggerを追加PC88.startVGMLogging()/stopVGMLogging(gameName:)と C ABIb88_vgm_start/b88_vgm_is_logging/b88_vgm_stop/b88_vgm_readを追加BOOTTEST_VGMで VGM を書き出すアプリ側は bubio/Bubilator88 の VGM 録音 PR で使います。
Test plan
swift test(1144 件パス、VGMLogger のテスト 12 件を含む)YM2608Rendererで描画して比較(相関 0.9997 以上).vgm/.vgzを再生🤖 Generated with Claude Code