aboutsummaryrefslogtreecommitdiff
path: root/libpcsxcore/mdec.c
diff options
context:
space:
mode:
authornotaz2010-12-21 15:46:24 +0200
committernotaz2010-12-22 01:24:05 +0200
commitd28b54b1d1d161b3f3acc3299c43106a022451e6 (patch)
tree2ba7ad08ffdd0651100206931f99ece3dfa490b2 /libpcsxcore/mdec.c
parent96d9fde1230e5ae6de069ff9e4a0f16185650ab5 (diff)
downloadpcsx_rearmed-d28b54b1d1d161b3f3acc3299c43106a022451e6.tar.gz
pcsx_rearmed-d28b54b1d1d161b3f3acc3299c43106a022451e6.tar.bz2
pcsx_rearmed-d28b54b1d1d161b3f3acc3299c43106a022451e6.zip
core: update to newer interrupt code, seems to affect timings too
pcsxr-svn commit: Author: weimingzhi Date: Sat Aug 7 23:52:44 2010 +0000 refactored the interrupt scheduling code a bit to make it a little more readable than using those "magic" numbers.
Diffstat (limited to 'libpcsxcore/mdec.c')
-rw-r--r--libpcsxcore/mdec.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/libpcsxcore/mdec.c b/libpcsxcore/mdec.c
index 5e84152..f9b8d58 100644
--- a/libpcsxcore/mdec.c
+++ b/libpcsxcore/mdec.c
@@ -543,12 +543,11 @@ void mdec1Interrupt() {
if (HW_DMA1_CHCR & SWAP32(0x01000000)) {
// Set a fixed value totaly arbitrarie another sound value is
// PSXCLK / 60 or PSXCLK / 50 since the bug happened at end of frame.
- // PSXCLK / 1000 seems good for FF9. (for FF9 need < ~28000)
+ // PSXCLK / 500 seems good for FF9.
// CAUTION: commented interrupt-handling may lead to problems, keep an eye ;-)
- MDECOUTDMA_INT(PSXCLK / 1000 * BIAS);
-// psxRegs.interrupt |= 0x02000000;
-// psxRegs.intCycle[5 + 24 + 1] *= 8;
-// psxRegs.intCycle[5 + 24] = psxRegs.cycle;
+ MDECOUTDMA_INT(PSXCLK / 500);
+// MDECOUTDMA_INT(psxRegs.intCycle[PSXINT_MDECOUTDMA].cycle * 8);
+
HW_DMA1_CHCR &= SWAP32(~0x01000000);
DMA_INTERRUPT(1);
} else {