| 148 | } |
| 149 | |
| 150 | static __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 | |
| 163 | static __fi void Sio0TestEvent(IopEventId n) |
| 164 | { |
no test coverage detected