summaryrefslogtreecommitdiff
path: root/Source/Core/DSPCore/Src/DSPIntCCUtil.cpp
diff options
context:
space:
mode:
authorMarko Pusljar <LM1234@gmail.com>2010-03-28 17:10:36 +0000
committerMarko Pusljar <LM1234@gmail.com>2010-03-28 17:10:36 +0000
commit6bcae13ff8603a8a26e7a5e7ad2f9cd09734f4a0 (patch)
treedf7daa0864a9dfba15d282f744188c1383ea5ef4 /Source/Core/DSPCore/Src/DSPIntCCUtil.cpp
parent4fb21aa137ba16e9794cf349c714c93a17d27e20 (diff)
DSPLLE - small idleskip improvment for zelda
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5248 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DSPCore/Src/DSPIntCCUtil.cpp')
-rw-r--r--Source/Core/DSPCore/Src/DSPIntCCUtil.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/Source/Core/DSPCore/Src/DSPIntCCUtil.cpp b/Source/Core/DSPCore/Src/DSPIntCCUtil.cpp
index fe19f57390..91581b4b29 100644
--- a/Source/Core/DSPCore/Src/DSPIntCCUtil.cpp
+++ b/Source/Core/DSPCore/Src/DSPIntCCUtil.cpp
@@ -61,7 +61,7 @@ void Update_SR_Register64(s64 _Value, bool carry, bool overflow)
g_dsp.r[DSP_REG_SR] |= SR_OVER_S32;
}
- // 0x20 - Checks if top bits of m are equal, what is it good for?
+ // 0x20 - Checks if top bits of m are equal
if (((_Value & 0xc0000000) == 0) || ((_Value & 0xc0000000) == 0xc0000000))
{
g_dsp.r[DSP_REG_SR] |= SR_TOP2BITS;
@@ -104,7 +104,7 @@ void Update_SR_Register16(s16 _Value, bool carry, bool overflow, bool overS32)
g_dsp.r[DSP_REG_SR] |= SR_OVER_S32;
}
- // 0x20 - Checks if top bits of m are equal, what is it good for?
+ // 0x20 - Checks if top bits of m are equal
if ((((u16)_Value >> 14) == 0) || (((u16)_Value >> 14) == 3))
{
g_dsp.r[DSP_REG_SR] |= SR_TOP2BITS;
@@ -152,7 +152,7 @@ inline bool isConditionA() {
return (((g_dsp.r[DSP_REG_SR] & SR_OVER_S32) || (g_dsp.r[DSP_REG_SR] & SR_TOP2BITS)) && !(g_dsp.r[DSP_REG_SR] & SR_ARITH_ZERO)) ? true : false;
}
-//see gdsp_registers.h for flags
+//see DSPCore.h for flags
bool CheckCondition(u8 _Condition)
{
switch (_Condition & 0xf)
@@ -190,8 +190,7 @@ bool CheckCondition(u8 _Condition)
case 0xf: // Empty - always true.
return true;
default:
- ERROR_LOG(DSPLLE, "Unknown condition check: 0x%04x", _Condition & 0xf);
- return false;
+ return true;
}
}