Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add description for out of bounds MBC ram access #594

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alloncm
Copy link
Contributor

@alloncm alloncm commented Mar 22, 2025

This is based on:

Since there are many types of MBC's I added that this is for most of the MBC's

This is based on:
- Source code of the SameBoy emulator
- Dissassembling Pokemon Pinball which depends on this behavior
- Mbc1 schematics - https://www.devrs.com/gb/files/mbc1.gif
@nummacway
Copy link

Use "modulo max_ram_size" instead of "and (max_ram_size - 1)"?
Why does Pinball depend on it? It doesn't even have banked RAM.

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