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

Function LW

pcsx2/R5900OpcodeImpl.cpp:592–610  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

590}
591
592void LW()
593{
594 u32 addr = cpuRegs.GPR.r[_Rs_].UL[0] + _Imm_;
595
596 if (addr & 3) [[unlikely]]
597 RaiseAddressError(addr, false);
598
599 u32 temp = memRead32(addr);
600
601 if (!_Rt_) return;
602 cpuRegs.GPR.r[_Rt_].SD[0] = (s32)temp;
603
604 // Force event test on EE counter read to improve read + interrupt syncing. Namely ESPN Games.
605 if ((addr & 0xFFFFE000) == 0x10000000)
606 {
607 intUpdateCPUCycles();
608 intEventTest();
609 }
610}
611
612void LWU()
613{

Callers

nothing calls this directly

Calls 3

RaiseAddressErrorFunction · 0.85
intUpdateCPUCyclesFunction · 0.85
intEventTestFunction · 0.85

Tested by

no test coverage detected