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

Function DADDI

pcsx2/R5900OpcodeImpl.cpp:302–308  ·  view source on GitHub ↗

Rt = Rs + Im [exception on overflow] This is the full 64 bit version of ADDI. Overflow occurs at 64 bits instead of at 32 bits.

Source from the content-addressed store, hash-verified

300// This is the full 64 bit version of ADDI. Overflow occurs at 64 bits instead
301// of at 32 bits.
302void DADDI()
303{
304 s64 result;
305 bool overflow = _add64_Overflow( cpuRegs.GPR.r[_Rs_].SD[0], _Imm_, result );
306 if (overflow || !_Rt_) return;
307 cpuRegs.GPR.r[_Rt_].SD[0] = result;
308}
309
310// Rt = Rs + Im [overflow ignored]
311// This instruction is effectively identical to DADDI. It is not a true unsigned operation,

Callers

nothing calls this directly

Calls 1

_add64_OverflowFunction · 0.85

Tested by

no test coverage detected