summaryrefslogtreecommitdiff
path: root/libpcsxcore/psxcounters.c
diff options
context:
space:
mode:
authorSND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2010-05-14 08:20:51 +0000
committerSND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2010-05-14 08:20:51 +0000
commit830a16adf3b87c887ce43143b7f45fd8d970e608 (patch)
treefc58ab59671a7a98a1f28c2e30781626b729897f /libpcsxcore/psxcounters.c
parentbccb9c573355bcecfc03115d1f07776af993b7e3 (diff)
downloadpcsxr-830a16adf3b87c887ce43143b7f45fd8d970e608.tar.gz
BIAS was moved into rec/int.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@48024 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'libpcsxcore/psxcounters.c')
-rw-r--r--libpcsxcore/psxcounters.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/libpcsxcore/psxcounters.c b/libpcsxcore/psxcounters.c
index d26a3d93..d1089b66 100644
--- a/libpcsxcore/psxcounters.c
+++ b/libpcsxcore/psxcounters.c
@@ -116,7 +116,7 @@ void _psxRcntWcount( u32 index, u32 value )
value &= 0xffff;
}
- rcnts[index].cycleStart = psxRegs.cycle * BIAS;
+ rcnts[index].cycleStart = psxRegs.cycle;
rcnts[index].cycleStart -= value * rcnts[index].rate;
// TODO: <=.
@@ -137,7 +137,7 @@ u32 _psxRcntRcount( u32 index )
{
u32 count;
- count = psxRegs.cycle * BIAS;
+ count = psxRegs.cycle;
count -= rcnts[index].cycleStart;
count /= rcnts[index].rate;
@@ -158,7 +158,7 @@ void psxRcntSet()
s32 countToUpdate;
u32 i;
- psxNextsCounter = psxRegs.cycle * BIAS;
+ psxNextsCounter = psxRegs.cycle;
psxNextCounter = 0x7fffffff;
for( i = 0; i < CounterQuantity; ++i )
@@ -189,7 +189,7 @@ void psxRcntReset( u32 index )
{
if( rcnts[index].mode & RcCountToTarget )
{
- count = psxRegs.cycle * BIAS;
+ count = psxRegs.cycle;
count -= rcnts[index].cycleStart;
count /= rcnts[index].rate;
count -= rcnts[index].target;
@@ -215,7 +215,7 @@ void psxRcntReset( u32 index )
}
else if( rcnts[index].counterState == CountToOverflow )
{
- count = psxRegs.cycle * BIAS;
+ count = psxRegs.cycle;
count -= rcnts[index].cycleStart;
count /= rcnts[index].rate;
count -= 0xffff;
@@ -244,7 +244,7 @@ void psxRcntUpdate()
{
u32 cycle;
- cycle = psxRegs.cycle * BIAS;
+ cycle = psxRegs.cycle;
// rcnt 0.
if( cycle - rcnts[0].cycleStart >= rcnts[0].cycle )
@@ -291,7 +291,7 @@ void psxRcntUpdate()
}
*/
// Update lace. (with InuYasha fix)
- if( hSyncCount == (Config.VSyncWA ? HSyncTotal[Config.PsxType] / 2 : HSyncTotal[Config.PsxType]) )
+ if( hSyncCount == (Config.VSyncWA ? HSyncTotal[Config.PsxType] / BIAS : HSyncTotal[Config.PsxType]) )
{
hSyncCount = 0;