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

Function TESTINT

pcsx2/R5900.cpp:245–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243}
244
245static __fi void TESTINT( u8 n, void (*callback)() )
246{
247 if( !(cpuRegs.interrupt & (1 << n)) ) return;
248
249 if(CHECK_INSTANTDMAHACK || cpuTestCycle( cpuRegs.sCycle[n], cpuRegs.eCycle[n] ) )
250 {
251 cpuClearInt( n );
252 callback();
253 }
254 else
255 cpuSetNextEvent( cpuRegs.sCycle[n], cpuRegs.eCycle[n] );
256}
257
258// [TODO] move this function to Dmac.cpp, and remove most of the DMAC-related headers from
259// being included into R5900.cpp.

Callers 1

_cpuTestInterruptsFunction · 0.85

Calls 3

cpuTestCycleFunction · 0.85
cpuClearIntFunction · 0.85
cpuSetNextEventFunction · 0.85

Tested by

no test coverage detected