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

Function SH

pcsx2/R5900OpcodeImpl.cpp:762–770  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

760}
761
762void SH()
763{
764 u32 addr = cpuRegs.GPR.r[_Rs_].UL[0] + _Imm_;
765
766 if (addr & 1) [[unlikely]]
767 RaiseAddressError(addr, true);
768
769 memWrite16(addr, cpuRegs.GPR.r[_Rt_].US[0]);
770}
771
772void SW()
773{

Callers

nothing calls this directly

Calls 1

RaiseAddressErrorFunction · 0.85

Tested by

no test coverage detected