<<< Bitwise not vs. logical not | Index | Logical expression example 1 >>> |
seq $t1, $t2, $t3 # $t1 = $t2 == $t3 ? 1 : 0 sne $t1, $t2, $t3 # $t1 = $t2 != $t3 ? 1 : 0 sge $t1, $t2, $t3 # $t1 = $t2 >= $t3 ? 1 : 0 sgt $t1, $t2, $t3 # $t1 = $t2 > $t3 ? 1 : 0 sle $t1, $t2, $t3 # $t1 = $t2 <= $t3 ? 1 : 0 slt $t1, $t2, $t3 # $t1 = $t2 < $t3 ? 1 : 0
MARS Immediate formats:
slti $t1, $t2, 42 # $t1 = $t2 < 42 ? 1 : 0 ...and so on...
<<< Bitwise not vs. logical not | Index | Logical expression example 1 >>> |