<<< Bitwise examples | Index | Logical expressions >>> |
MARS provides a macro instruction for bitwise not. The instruction inverts every bit
A logical not can be done as follows:
xori $t1, $t2, 1 # $t1 = not $t2 (logical not)
<<< Bitwise examples | Index | Logical expressions >>> |