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

Function ADDI

pcsx2/R5900OpcodeImpl.cpp:282–288  ·  view source on GitHub ↗

Rt = Rs + Im signed [exception on overflow]

Source from the content-addressed store, hash-verified

280
281// Rt = Rs + Im signed [exception on overflow]
282void ADDI()
283{
284 s64 result;
285 bool overflow = _add32_Overflow( cpuRegs.GPR.r[_Rs_].SD[0], _Imm_, result );
286 if (overflow || !_Rt_) return;
287 cpuRegs.GPR.r[_Rt_].SD[0] = result;
288}
289
290// Rt = Rs + Im signed !!! [overflow ignored]
291// This instruction is effectively identical to ADDI. It is not a true unsigned operation,

Callers

nothing calls this directly

Calls 1

_add32_OverflowFunction · 0.85

Tested by

no test coverage detected