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

Function LHU

pcsx2/R5900OpcodeImpl.cpp:572–590  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

570}
571
572void LHU()
573{
574 u32 addr = cpuRegs.GPR.r[_Rs_].UL[0] + _Imm_;
575
576 if (addr & 1) [[unlikely]]
577 RaiseAddressError(addr, false);
578
579 u16 temp = memRead16(addr);
580
581 if (!_Rt_) return;
582 cpuRegs.GPR.r[_Rt_].UD[0] = temp;
583
584 // Force event test on EE counter read to improve read + interrupt syncing. Namely ESPN Games.
585 if ((addr & 0xFFFFE000) == 0x10000000)
586 {
587 intUpdateCPUCycles();
588 intEventTest();
589 }
590}
591
592void LW()
593{

Callers

nothing calls this directly

Calls 3

RaiseAddressErrorFunction · 0.85
intUpdateCPUCyclesFunction · 0.85
intEventTestFunction · 0.85

Tested by

no test coverage detected