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

Function IopTestEvent

pcsx2/R3000A.cpp:150–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150static __fi void IopTestEvent( IopEventId n, void (*callback)() )
151{
152 if( !(psxRegs.interrupt & (1 << n)) ) return;
153
154 if( psxTestCycle( psxRegs.sCycle[n], psxRegs.eCycle[n] ) )
155 {
156 psxRegs.interrupt &= ~(1 << n);
157 callback();
158 }
159 else
160 psxSetNextBranch( psxRegs.sCycle[n], psxRegs.eCycle[n] );
161}
162
163static __fi void Sio0TestEvent(IopEventId n)
164{

Callers 1

_psxTestInterruptsFunction · 0.85

Calls 2

psxTestCycleFunction · 0.85
psxSetNextBranchFunction · 0.85

Tested by

no test coverage detected