Skip to content

NES: Rainbow - mapper updates to match hardware implementation#162

Open
BrokeStudio wants to merge 7 commits into
nesdev-org:masterfrom
BrokeStudio:rnbw-mapper-updates
Open

NES: Rainbow - mapper updates to match hardware implementation#162
BrokeStudio wants to merge 7 commits into
nesdev-org:masterfrom
BrokeStudio:rnbw-mapper-updates

Conversation

@BrokeStudio

Copy link
Copy Markdown

OAM Sprite Limit register described here.

- removed PPU IRQ pending flag from returned value
The counter is already reset when writing to 0x415A (CPU IRQ control) or when it reaches 0.
- 256 bytes page
- ext bank every 4 bytes
- added a sprite limit register (0-63) to update a specific amount of sprites to update
- Slow OAM Update routine doesn't set $2003 anymore
@BrokeStudio BrokeStudio force-pushed the rnbw-mapper-updates branch from ea35c7d to 7d5428f Compare June 3, 2026 09:53

@NovaSquirrel NovaSquirrel left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good. I also tried checking it against the mapper documentation and it seems to match what's described there.

I noticed the least significant bit of $4151 is still documented as being an interrupt pending flag; normally I would say that a comment might be nice to indicate that the zero is meaningful (to replace the code that got removed) but if the spec effectively says that it's always zero then the meaning doesn't matter.

@BrokeStudio

Copy link
Copy Markdown
Author

Good catch, thanks, I fixed the documentation.

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.

2 participants