Skip to content

fix(mapper4): decode MMC3 register writes using mirrored address bits#654

Open
SergioChan wants to merge 1 commit intobfirsh:mainfrom
SergioChan:fix/mmc3-address-decode-594
Open

fix(mapper4): decode MMC3 register writes using mirrored address bits#654
SergioChan wants to merge 1 commit intobfirsh:mainfrom
SergioChan:fix/mmc3-address-decode-594

Conversation

@SergioChan
Copy link

@SergioChan SergioChan commented Mar 8, 2026

Summary

  • decode mapper 4 register writes using address & 0xE001 before dispatching cases
  • keep behavior for canonical addresses unchanged while accepting valid mirrored addresses (for example $8002, $9FFE, $A002)
  • add MMC3 unit tests covering masked bank-select and mirroring-register writes

Testing

  • node --test test/mappers.spec.js
  • note: npm test fails in this environment before tests run because prettier is not executable (sh: 1: prettier: Permission denied), so the targeted node test command was used

Related

Fixes #594

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.

MMC3: register address decoding uses exact addresses instead of masking

1 participant