From d28b54b1d1d161b3f3acc3299c43106a022451e6 Mon Sep 17 00:00:00 2001 From: notaz Date: Tue, 21 Dec 2010 15:46:24 +0200 Subject: 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. --- libpcsxcore/mdec.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'libpcsxcore/mdec.c') 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 { -- cgit v1.2.3