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

Function LB

pcsx2/R5900OpcodeImpl.cpp:520–534  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

518}
519
520void LB()
521{
522 u32 addr = cpuRegs.GPR.r[_Rs_].UL[0] + _Imm_;
523 s8 temp = memRead8(addr);
524
525 if (!_Rt_) return;
526 cpuRegs.GPR.r[_Rt_].SD[0] = temp;
527
528 // Force event test on EE counter read to improve read + interrupt syncing. Namely ESPN Games.
529 if ((addr & 0xFFFFE000) == 0x10000000)
530 {
531 intUpdateCPUCycles();
532 intEventTest();
533 }
534}
535
536void LBU()
537{

Callers

nothing calls this directly

Calls 2

intUpdateCPUCyclesFunction · 0.85
intEventTestFunction · 0.85

Tested by

no test coverage detected