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

Function rcntWtarget

pcsx2/Counters.cpp:929–945  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

927}
928
929static __fi void rcntWtarget(int index, u32 value)
930{
931 EECNT_LOG("EE Counter[%d] writeTarget = %x", index, value);
932
933 counters[index].target = value & 0xffff;
934
935 // guard against premature (instant) targeting.
936 // If the target is behind the current count, set it up so that the counter must
937 // overflow first before the target fires:
938
939 rcntSyncCounter(index);
940
941 if (counters[index].target <= counters[index].count)
942 counters[index].target |= EECNT_FUTURE_TARGET;
943
944 _rcntSet(index);
945}
946
947static __fi void rcntWhold(int index, u32 value)
948{

Callers 1

rcntWrite32Function · 0.85

Calls 2

rcntSyncCounterFunction · 0.85
_rcntSetFunction · 0.70

Tested by

no test coverage detected