XOR Instruction
XOR Operation on Bits |
first operand | 0 | 0 | 1 | 1 |
second operand | 0 | 1 | 0 | 1 |
| __ | __ | __ | __ |
result | 0 | 1 | 1 | 0 |
You will not be surprised
to find that there is a
XOR
instruction:
xor d,s,t # $d <-- bitwise XOR between $s with $t.
Recall that the result of XOR is one when
only one operand bit is one.