xor
Logical Exclusive OR
XOR r/m, r
Performs bitwise XOR.
Details
The Logical Exclusive OR instruction performs bitwise XOR.
Pseudocode Operation
DEST <- DEST XOR SRC
// Flags affected: SF, ZF, PF (OF=CF=0)
Example
XOR rbx, rax
Encoding
Binary Layout
30+ow
+0
ModRM
+1
Operands
-
dest
Register or memory operand -
src
General-purpose register