Rd = Rs - Rt (Exception on Integer Overflow)
| 345 | |
| 346 | // Rd = Rs - Rt (Exception on Integer Overflow) |
| 347 | void SUB() |
| 348 | { |
| 349 | s64 result; |
| 350 | bool overflow = _add32_Overflow( cpuRegs.GPR.r[_Rs_].SD[0], -cpuRegs.GPR.r[_Rt_].SD[0], result ); |
| 351 | if (overflow || !_Rd_) return; |
| 352 | cpuRegs.GPR.r[_Rd_].SD[0] = result; |
| 353 | } |
| 354 | |
| 355 | // Rd = Rs - Rt (Exception on Integer Overflow) |
| 356 | void DSUB() |
nothing calls this directly
no test coverage detected