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

Function CFC2

pcsx2/VU0.cpp:140–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138}
139
140void CFC2() {
141 vu0Sync();
142
143 if (cpuRegs.code & 1) {
144 _vu0FinishMicro();
145 }
146
147 if (_Rt_ == 0) return;
148
149 if (_Fs_ == REG_R)
150 cpuRegs.GPR.r[_Rt_].UL[0] = VU0.VI[REG_R].UL & 0x7FFFFF;
151 else
152 {
153 cpuRegs.GPR.r[_Rt_].UL[0] = VU0.VI[_Fs_].UL;
154
155 if (VU0.VI[_Fs_].UL & 0x80000000)
156 cpuRegs.GPR.r[_Rt_].UL[1] = 0xffffffff;
157 else
158 cpuRegs.GPR.r[_Rt_].UL[1] = 0;
159 }
160
161}
162
163void CTC2() {
164 vu0Sync();

Callers

nothing calls this directly

Calls 2

vu0SyncFunction · 0.85
_vu0FinishMicroFunction · 0.85

Tested by

no test coverage detected