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

NSF Driver: FDS read-write register padding #334

Open
Gumball2415 opened this issue Jan 26, 2025 · 0 comments
Open

NSF Driver: FDS read-write register padding #334

Gumball2415 opened this issue Jan 26, 2025 · 0 comments
Labels
bug Something isn't working nsf-driver sound engine used in NSF/assembly file export

Comments

@Gumball2415
Copy link
Collaborator

when using FDS in some NSF player implementations, the memory region in $8000-DFFF becomes read-writeable due to the FDS RAM adapter. this means that any chips that has their audio registers in this region will inevitably overwrite any data/code that happens to be there.

to avoid overwriting any data/code, we can add padding around these addresses as a workaround:

  • VRC6
    • $9000-$9003
    • $A000-$A002
    • $B000-$B002
  • VRC7
    • $9010
    • $9030
  • Sunsoft 5B
    • $C000 (no mirrored address should be used)
    • $E000 (no mirrored address should be used)
@Gumball2415 Gumball2415 added bug Something isn't working nsf-driver sound engine used in NSF/assembly file export labels Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working nsf-driver sound engine used in NSF/assembly file export
Projects
None yet
Development

No branches or pull requests

1 participant