0 NOR 0 = 1 | NOT 0 = 1 |
1 NOR 0 = 0 | NOT 1 = 0 |
NOT X = X NOR 0
$0
NOT Operation on Bits | ||||
---|---|---|---|---|
first operand | 0 | 1 | ||
| ||||
result | 1 | 0 |
The
NOT operation is done by using the NOR instruction
with $0
as one of the operands:
nor d,s,$0 # $d <— bitwise NOT of $s.
Say that register $8
contains a bit pattern.
OR is performed between it and register $0
.
Register $9
is to be the destination.
What is the effect?
or $9,$8,$0