ABSolute value : Set $t1 to absolute value of $t2 (algorithm from Hacker's Delight)
abs
Operands
$reg, $regVariants
- ABSolute value : Set $t1 to absolute value of $t2 (algorithm from Hacker's Delight) abs $t1,$t2
# Take the absolute value of -7. Inspect $t2: 7.
li $t0, -7
abs $t2, $t0