diff options
author | notaz | 2010-12-22 01:44:14 +0200 |
---|---|---|
committer | notaz | 2010-12-23 00:29:55 +0200 |
commit | 528ad661dd07067cbcd6c1beebad63fc36795759 (patch) | |
tree | f0194f7f543d601ab66a94b9c821daeb1ba0373d /libpcsxcore/psxdma.h | |
parent | 52082bc1e755206eb1c9865153fdc733cbc12941 (diff) | |
download | pcsx_rearmed-528ad661dd07067cbcd6c1beebad63fc36795759.tar.gz pcsx_rearmed-528ad661dd07067cbcd6c1beebad63fc36795759.tar.bz2 pcsx_rearmed-528ad661dd07067cbcd6c1beebad63fc36795759.zip |
update mdec code to pcsxr-svn Nov 26
lots of patches from shalma and gschwnd.
Diffstat (limited to 'libpcsxcore/psxdma.h')
-rw-r--r-- | libpcsxcore/psxdma.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libpcsxcore/psxdma.h b/libpcsxcore/psxdma.h index b73781f..9213418 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); |