MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / dmacInterrupt

Function dmacInterrupt

pcsx2/Hw.cpp:79–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79__fi uint dmacInterrupt()
80{
81 if( ((psHu16(DMAC_STAT + 2) & psHu16(DMAC_STAT)) == 0 ) &&
82 ( psHu16(DMAC_STAT) & 0x8000) == 0 )
83 {
84 //DevCon.Warning("No valid DMAC interrupt MASK %x STAT %x", psHu16(DMAC_STAT+2), psHu16(DMAC_STAT));
85 return 0;
86 }
87
88 if (!dmacRegs.ctrl.DMAE || psHu8(DMAC_ENABLER+2) == 1)
89 {
90 //DevCon.Warning("DMAC Suspended or Disabled on interrupt");
91 return 0;
92 }
93
94 DMA_LOG("dmacInterrupt %x",
95 ((psHu16(DMAC_STAT + 2) & psHu16(DMAC_STAT)) |
96 (psHu16(DMAC_STAT) & 0x8000))
97 );
98
99 //cpuException(0x800, cpuRegs.branch);
100 return 0x800;
101}
102
103void hwIntcIrq(int n)
104{

Callers 1

_cpuEventTest_SharedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected