X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=libpcsxcore%2Fpsxdma.h;fp=libpcsxcore%2Fpsxdma.h;h=92134189acc30ca7267731e38628a6c257e47ce3;hp=b73781fc9b84604a2f0fecec1ea6b5e2bd13a2a7;hb=528ad661dd07067cbcd6c1beebad63fc36795759;hpb=52082bc1e755206eb1c9865153fdc733cbc12941 diff --git a/libpcsxcore/psxdma.h b/libpcsxcore/psxdma.h index b73781fc..92134189 100644 --- a/libpcsxcore/psxdma.h +++ b/libpcsxcore/psxdma.h @@ -50,6 +50,13 @@ extern "C" { new_dyna_set_event(PSXINT_MDECOUTDMA, eCycle); \ } +#define MDECINDMA_INT(eCycle) { \ + psxRegs.interrupt |= (1 << PSXINT_MDECINDMA); \ + psxRegs.intCycle[PSXINT_MDECINDMA].cycle = eCycle; \ + psxRegs.intCycle[PSXINT_MDECINDMA].sCycle = psxRegs.cycle; \ + new_dyna_set_event(PSXINT_MDECINDMA, 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);