summaryrefslogtreecommitdiff
path: root/libpcsxcore/r3000a.c
diff options
context:
space:
mode:
authorSND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2010-05-14 23:42:13 +0000
committerSND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2010-05-14 23:42:13 +0000
commitf4ce286d13ff5faf21561f6ba126b8c31cb68c05 (patch)
tree8174fa34d26b317e71a29aced1f316d843acc64d /libpcsxcore/r3000a.c
parentc28a09fb48846a73db009bc4cea7c165e5939dc5 (diff)
spu dma was fixed.
Road Rash 3D, Syphon Filter 2, Twisted Metal: Small Browl, Thousand Arms... git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@48088 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'libpcsxcore/r3000a.c')
-rw-r--r--libpcsxcore/r3000a.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libpcsxcore/r3000a.c b/libpcsxcore/r3000a.c
index d8b3255a..b60f058d 100644
--- a/libpcsxcore/r3000a.c
+++ b/libpcsxcore/r3000a.c
@@ -145,6 +145,12 @@ void psxBranchTest() {
mdec1Interrupt();
}
}
+ if (psxRegs.interrupt & 0x04000000) { // spu dma
+ if ((psxRegs.cycle - psxRegs.intCycle[1+24]) >= psxRegs.intCycle[1+24+1]) {
+ psxRegs.interrupt&=~0x04000000;
+ spuInterrupt();
+ }
+ }
}
if (psxHu32(0x1070) & psxHu32(0x1074)) {