Skip to content

Fix MMC1 one-screen mirroring selection - #900

Open
sergykt wants to merge 1 commit into
bfirsh:mainfrom
sergykt:fix/mmc1-mirroring-mode-decoding
Open

sergykt wants to merge 1 commit into
bfirsh:mainfrom
sergykt:fix/mmc1-mirroring-mode-decoding

Conversation

@sergykt

@sergykt sergykt commented Dec 5, 2026 •

Copy link
Copy Markdown

Summary

Fix MMC1 control-register mirroring so all four modes map correctly: single-screen A, single-screen B, vertical mirroring, and horizontal mirroring. Add tests covering each mode.

Root cause

The previous logic grouped control values 0 and 1 into the same single-screen mode, so it could not select screen B. It also skipped applying mode 0 on startup when the mapper’s cached mirroring value was already 0, even if the PPU had a different initial mirroring mode.

Map control values 0 and 1 to separate nametable pages and always apply
the selected mirroring mode. Add coverage for all four MMC1 modes.

This branch has not been deployed

No deployments
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