nor

Operands

$reg, $reg, $reg

Bitwise NOR : Sets $t1 = ~($t2 | $t3). Each bit of $t1 is 1 only if the corresponding bit is 0 in both $t2 and $t3. Tip: 'nor $t1,$t2,$zero' computes a bitwise NOT of $t2, since MIPS has no dedicated NOT instruction.

Variants

  • Bitwise NOR : Sets $t1 = ~($t2 | $t3). Each bit of $t1 is 1 only if the corresponding bit is 0 in both $t2 and $t3. Tip: 'nor $t1,$t2,$zero' computes a bitwise NOT of $t2, since MIPS has no dedicated NOT instruction. nor $t1,$t2,$t3
# Initialize both inputs, then execute nor with initialized inputs. Inspect $t2: 4294967288.
li $t0, 7
li $t1, 3
nor $t2, $t0, $t1