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

Function cpuTestCycle

pcsx2/R5900.cpp:224–230  ·  view source on GitHub ↗

tests the cpu cycle against the given start and delta values. Returns true if the delta time has passed.

Source from the content-addressed store, hash-verified

222// tests the cpu cycle against the given start and delta values.
223// Returns true if the delta time has passed.
224__fi int cpuTestCycle( u64 startCycle, s32 delta )
225{
226 // typecast the conditional to signed so that things don't explode
227 // if the startCycle is ahead of our current cpu cycle.
228
229 return (int)(cpuRegs.cycle - startCycle) >= delta;
230}
231
232// tells the EE to run the branch test the next time it gets a chance.
233__fi void cpuSetEvent()

Callers 4

TESTINTFunction · 0.85
_cpuEventTest_SharedFunction · 0.85
rcntUpdate_vSyncFunction · 0.85
rcntUpdate_hScanlineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected