mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
DSP: Separate the two UpdateRegister functions more clearly. Add more comments about the condition codes.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2874 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -26,7 +26,7 @@
|
||||
|
||||
namespace DSPInterpreter {
|
||||
|
||||
void Update_SR_Register(s64 _Value)
|
||||
void Update_SR_Register64(s64 _Value)
|
||||
{
|
||||
g_dsp.r[R_SR] &= ~SR_CMP_MASK;
|
||||
|
||||
@ -47,7 +47,7 @@ void Update_SR_Register(s64 _Value)
|
||||
}
|
||||
}
|
||||
|
||||
void Update_SR_Register(s16 _Value)
|
||||
void Update_SR_Register16(s16 _Value)
|
||||
{
|
||||
g_dsp.r[R_SR] &= ~SR_CMP_MASK;
|
||||
|
||||
@ -68,13 +68,12 @@ void Update_SR_Register(s16 _Value)
|
||||
}
|
||||
}
|
||||
|
||||
s8 GetMultiplyModifier()
|
||||
int GetMultiplyModifier()
|
||||
{
|
||||
if (g_dsp.r[R_SR] & (1 << 13))
|
||||
{
|
||||
return(1);
|
||||
}
|
||||
return 2;
|
||||
return 1;
|
||||
else
|
||||
return 2;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user