Repository navigation
NES: Support oversized (>512KB) PRG ROMs on VRC7 (Mapper 85) - #308
Open
qiuyang1008 wants to merge 1 commit into
Open
qiuyang1008 wants to merge 1 commit into
qiuyang1008 wants to merge 1 commit into
Conversation
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.
This updates
VRC7::WriteRegisterso PRG bank writes ($8000,$8008,$9000) can access banks beyond 512KB when_prgSize > 0x80000, while keeping the hardware-accurate& 0x3Fmask for 512KB and smaller ROMs.The main use case is the Chinese fan translation of Lagrange Point. The translation team spent 2–3 years on it and had to expand the PRG ROM to 1MB to fit the Chinese fonts and text. Supporting this lets more players enjoy the translation on Mesen without affecting original VRC7 titles at all.
I edited this via the GitHub web UI without a local build setup, though I already verified the exact same mask change by patching
MesenCore.dlland confirmed the 1MB translation runs fine.If you'd prefer a different implementation (e.g. relying on
SelectPrgPagewrapping directly or gating it differently), please let me know. Thanks for maintaining MesenCE and keeping retro preservation alive!