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

Function _rcntSetGate

pcsx2/Counters.cpp:777–789  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

775}
776
777static __fi void _rcntSetGate(int index)
778{
779 if (counters[index].mode.EnableGate)
780 {
781 // If the Gate Source is hblank and the clock selection is also hblank
782 // the timer completely turns off (HW Tested).
783 if (!(counters[index].mode.GateSource == 0 && counters[index].mode.ClockSource == 3))
784 EECNT_LOG("EE Counter[%d] Using Gate! Source=%s, Mode=%d.",
785 index, counters[index].mode.GateSource ? "vblank" : "hblank", counters[index].mode.GateMode);
786 else
787 EECNT_LOG("EE Counter[%d] GATE DISABLED because of hblank source.", index);
788 }
789}
790
791// mode - 0 means hblank source, 8 means vblank source.
792static __fi void rcntStartGate(bool isVblank, u64 sCycle)

Callers 1

rcntWmodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected