Skip to content

NES: Support oversized (>512KB) PRG ROMs on VRC7 (Mapper 85) - #308

Open
qiuyang1008 wants to merge 1 commit into
nesdev-org:masterfrom
qiuyang1008:patch-2
Open

qiuyang1008 wants to merge 1 commit into
nesdev-org:masterfrom
qiuyang1008:patch-2

Conversation

@qiuyang1008

Copy link
Copy Markdown

This updates VRC7::WriteRegister so PRG bank writes ($8000, $8008, $9000) can access banks beyond 512KB when _prgSize > 0x80000, while keeping the hardware-accurate & 0x3F mask 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.dll and confirmed the 1MB translation runs fine.

If you'd prefer a different implementation (e.g. relying on SelectPrgPage wrapping directly or gating it differently), please let me know. Thanks for maintaining MesenCE and keeping retro preservation alive!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant