<<< MIPS register names and conventions | Index | Immediate instructions >>> |
# Instruction # Meaning in pseudocode add $t1, $t2, $t3 # $t1 = $t2 + $t3 sub $t1, $t2, $t3 # $t1 = $t2 - $t3 and $t1, $t2, $t3 # $t1 = $t2 & $t3 (bitwise and) or $t1, $t2, $t3 # $t1 = $t2 | $t3 (bitwise or) # set if equal: seq $t1, $t2, $t3 # $t1 = $t2 == $t3 ? 1 : 0 # set if less than: slt $t1, $t2, $t3 # $t1 = $t2 < $t3 ? 1 : 0 # set if less than or equal: sle $t1, $t2, $t3 # $t1 = $t2 <= $t3 ? 1 : 0
Other instructions of the same form
xor, nor sne, sgt, sge
<<< MIPS register names and conventions | Index | Immediate instructions >>> |