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

Function ADD

pcsx2/R5900OpcodeImpl.cpp:330–336  ·  view source on GitHub ↗

Rd = Rs + Rt (Exception on Integer Overflow)

Source from the content-addressed store, hash-verified

328
329// Rd = Rs + Rt (Exception on Integer Overflow)
330void ADD()
331{
332 s64 result;
333 bool overflow = _add32_Overflow( cpuRegs.GPR.r[_Rs_].SD[0], cpuRegs.GPR.r[_Rt_].SD[0], result );
334 if (overflow || !_Rd_) return;
335 cpuRegs.GPR.r[_Rd_].SD[0] = result;
336}
337
338void DADD()
339{

Callers

nothing calls this directly

Calls 1

_add32_OverflowFunction · 0.85

Tested by

no test coverage detected