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

Function QuickDmaExec

pcsx2/Dmac.cpp:181–193  ·  view source on GitHub ↗

Returns true if the DMA is enabled and executed successfully. Returns false if execution was blocked (DMAE or master DMA enabler).

Source from the content-addressed store, hash-verified

179// Returns true if the DMA is enabled and executed successfully. Returns false if execution
180// was blocked (DMAE or master DMA enabler).
181static bool QuickDmaExec( void (*func)(), u32 mem)
182{
183 bool ret = false;
184 DMACh& reg = (DMACh&)psHu32(mem);
185
186 if (reg.chcr.STR && dmacRegs.ctrl.DMAE && !psHu8(DMAC_ENABLER+2))
187 {
188 func();
189 ret = true;
190 }
191
192 return ret;
193}
194
195
196static tDMAC_QUEUE QueuedDMA(0);

Callers 1

StartQueuedDMAFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected