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

DSP cleanup #792

Merged
merged 2 commits into from Aug 19, 2014
Merged

DSP cleanup #792

merged 2 commits into from Aug 19, 2014

Conversation

booto
Copy link
Contributor

@booto booto commented Aug 13, 2014

Some general DSP cleanup:

  • Making functions static if possible
  • Removing branchiness from Interrupt setting functions
  • Drop the bSet parameter because those functions were only ever used to set the interrupts

I've done some limited testing; seems fine but it'd be good to get some confirmation from others.

case INT_ARAM: g_dspState.DSPControl.ARAM = _bSet ? 1 : 0; if (_bSet) g_dspState.DSPControl.DMAState = 0; break;
case INT_AID: g_dspState.DSPControl.AID = _bSet ? 1 : 0; break;
}
g_dspState.DSPControl.Hex |= (DSPIntType & (INT_DSP | INT_ARAM | INT_AID));

This comment was marked as off-topic.

@booto
Copy link
Contributor Author

booto commented Aug 14, 2014

Just added some comments about the changes to UpdateInterrupts and GenerateDSPInterrupt per request.

@lioncash
Copy link
Member

Looks good to me.

Parlane added a commit that referenced this pull request Aug 19, 2014
@Parlane Parlane merged commit 7246ea9 into dolphin-emu:master Aug 19, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants