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

fix ambiguous rom size notation #9

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

Conversation

ldgabbay
Copy link

@ldgabbay ldgabbay commented Nov 1, 2024

The functions make_rom_byte and make_rom_nibble would use the old style ROM size notation with sizes up to 67,108,864. However, for PRG-ROM and CHR-ROM, old style notation can only go up to 62,898,176 and 31,449,088 respectively, because any higher would put 0xF in the MSB which would signify exponent-multiplier notation. This patch correctly caps the use of old style notation to values within the valid range.

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