X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=libpcsxcore%2Fpsxdma.h;h=e21353f884f9784a96c73f7791ff7e4046c69ab6;hp=92134189acc30ca7267731e38628a6c257e47ce3;hb=57a757cedcc7928894aaf957565adfa95f1caab5;hpb=528ad661dd07067cbcd6c1beebad63fc36795759 diff --git a/libpcsxcore/psxdma.h b/libpcsxcore/psxdma.h index 92134189..e21353f8 100644 --- a/libpcsxcore/psxdma.h +++ b/libpcsxcore/psxdma.h @@ -57,12 +57,20 @@ extern "C" { new_dyna_set_event(PSXINT_MDECINDMA, eCycle); \ } +#define GPUOTCDMA_INT(eCycle) { \ + psxRegs.interrupt |= (1 << PSXINT_GPUOTCDMA); \ + psxRegs.intCycle[PSXINT_GPUOTCDMA].cycle = eCycle; \ + psxRegs.intCycle[PSXINT_GPUOTCDMA].sCycle = psxRegs.cycle; \ + new_dyna_set_event(PSXINT_GPUOTCDMA, eCycle); \ +} + void psxDma2(u32 madr, u32 bcr, u32 chcr); void psxDma3(u32 madr, u32 bcr, u32 chcr); void psxDma4(u32 madr, u32 bcr, u32 chcr); void psxDma6(u32 madr, u32 bcr, u32 chcr); void gpuInterrupt(); void spuInterrupt(); +void gpuotcInterrupt(); #ifdef __cplusplus }