aboutsummaryrefslogtreecommitdiff
path: root/libpcsxcore/psxdma.h
diff options
context:
space:
mode:
Diffstat (limited to 'libpcsxcore/psxdma.h')
-rw-r--r--libpcsxcore/psxdma.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/libpcsxcore/psxdma.h b/libpcsxcore/psxdma.h
index 6736cdb..b73781f 100644
--- a/libpcsxcore/psxdma.h
+++ b/libpcsxcore/psxdma.h
@@ -30,24 +30,24 @@ extern "C" {
#include "psxmem.h"
#define GPUDMA_INT(eCycle) { \
- psxRegs.interrupt |= 0x01000000; \
- psxRegs.intCycle[3 + 24 + 1] = eCycle; \
- psxRegs.intCycle[3 + 24] = psxRegs.cycle; \
- new_dyna_set_event(3, eCycle); \
+ psxRegs.interrupt |= (1 << PSXINT_GPUDMA); \
+ psxRegs.intCycle[PSXINT_GPUDMA].cycle = eCycle; \
+ psxRegs.intCycle[PSXINT_GPUDMA].sCycle = psxRegs.cycle; \
+ new_dyna_set_event(PSXINT_GPUDMA, 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, eCycle); \
+ psxRegs.interrupt |= (1 << PSXINT_SPUDMA); \
+ psxRegs.intCycle[PSXINT_SPUDMA].cycle = eCycle; \
+ psxRegs.intCycle[PSXINT_SPUDMA].sCycle = psxRegs.cycle; \
+ new_dyna_set_event(PSXINT_SPUDMA, 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, eCycle); \
+ psxRegs.interrupt |= (1 << PSXINT_MDECOUTDMA); \
+ psxRegs.intCycle[PSXINT_MDECOUTDMA].cycle = eCycle; \
+ psxRegs.intCycle[PSXINT_MDECOUTDMA].sCycle = psxRegs.cycle; \
+ new_dyna_set_event(PSXINT_MDECOUTDMA, eCycle); \
}
void psxDma2(u32 madr, u32 bcr, u32 chcr);