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

Function LWU

pcsx2/R5900OpcodeImpl.cpp:612–623  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

610}
611
612void LWU()
613{
614 u32 addr = cpuRegs.GPR.r[_Rs_].UL[0] + _Imm_;
615
616 if (addr & 3) [[unlikely]]
617 RaiseAddressError(addr, false);
618
619 u32 temp = memRead32(addr);
620
621 if (!_Rt_) return;
622 cpuRegs.GPR.r[_Rt_].UD[0] = temp;
623}
624
625static const u32 LWL_MASK[4] = { 0xffffff, 0x0000ffff, 0x000000ff, 0x00000000 };
626static const u32 LWR_MASK[4] = { 0x000000, 0xff000000, 0xffff0000, 0xffffff00 };

Callers

nothing calls this directly

Calls 1

RaiseAddressErrorFunction · 0.85

Tested by

no test coverage detected