aboutsummaryrefslogtreecommitdiff
path: root/libpcsxcore/psxdma.h
diff options
context:
space:
mode:
authornotaz2010-12-07 00:06:21 +0200
committernotaz2010-12-14 15:24:50 +0200
commitae602c19f527fbc1f44cdb744cf824d04b8eceb1 (patch)
tree000d4051fb09ea2d8f4c35344dabbd40cc54213d /libpcsxcore/psxdma.h
parent5067f3414032416f7112cd771ebe0a7aaf9eb7bf (diff)
downloadpcsx_rearmed-ae602c19f527fbc1f44cdb744cf824d04b8eceb1.tar.gz
pcsx_rearmed-ae602c19f527fbc1f44cdb744cf824d04b8eceb1.tar.bz2
pcsx_rearmed-ae602c19f527fbc1f44cdb744cf824d04b8eceb1.zip
improve event handling (still has problems though)
Diffstat (limited to 'libpcsxcore/psxdma.h')
-rw-r--r--libpcsxcore/psxdma.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libpcsxcore/psxdma.h b/libpcsxcore/psxdma.h
index 0db6533..71a3eb0 100644
--- a/libpcsxcore/psxdma.h
+++ b/libpcsxcore/psxdma.h
@@ -33,18 +33,21 @@ extern "C" {
psxRegs.interrupt |= 0x01000000; \
psxRegs.intCycle[3 + 24 + 1] = eCycle; \
psxRegs.intCycle[3 + 24] = psxRegs.cycle; \
+ new_dyna_set_event(3, psxRegs.cycle + eCycle); \
}
#define SPUDMA_INT(eCycle) { \
psxRegs.interrupt |= 0x04000000; \
psxRegs.intCycle[1 + 24 + 1] = eCycle; \
psxRegs.intCycle[1 + 24] = psxRegs.cycle; \
+ new_dyna_set_event(5, psxRegs.cycle + eCycle); \
}
#define MDECOUTDMA_INT(eCycle) { \
psxRegs.interrupt |= 0x02000000; \
psxRegs.intCycle[5 + 24 + 1] = eCycle; \
psxRegs.intCycle[5 + 24] = psxRegs.cycle; \
+ new_dyna_set_event(4, psxRegs.cycle + eCycle); \
}
void psxDma2(u32 madr, u32 bcr, u32 chcr);