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

Initialize ALL DSP registers on boot instead of just a pre-defined list #454

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

KungFuFurby
Copy link
Owner

This will prevent any uninitialized DSP registers from causing shenanigans down the road. Additionally, this actually saves a few bytes. All of the DSP register values are covered in their original values except for the DIR DSP register: the reason why DIR isn't covered is because it is automatically set upon loading a piece of music, and no samples are currently pre-loaded either.

To avoid a possible accidental out-of-bounds case that occurred in vanilla SMW, one additional entry has been added to the PanValues table so that $14 is handled like it was previously. All other out-of-bounds cases will not be supported as the build changes over time.

This commit closes #453.

This will prevent any uninitialized DSP registers from causing shenanigans down
the road. Additionally, this actually saves a few bytes. All of the DSP register
values are covered in their original values except for the DIR DSP register: the
reason why DIR isn't covered is because it is automatically set upon loading a
piece of music, and no samples are currently pre-loaded either.

To avoid a possible accidental out-of-bounds case that occurred in vanilla SMW,
one additional entry has been added to the PanValues table so that $14 is
handled like it was previously. All other out-of-bounds cases will not be
supported as the build changes over time.

This commit closes #453.
@KungFuFurby KungFuFurby added the spc-side Involves the SPC700 code. label Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
spc-side Involves the SPC700 code.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Possibility of unintiailized DSP registers affecting the sound output unintentionally
1 participant