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:
hrydgard
2009-04-05 12:59:40 +00:00
parent 7368d712d6
commit 5d13f233e7
7 changed files with 270 additions and 275 deletions

View File

@ -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;
}