XOR XOR operation Flags: O D I T S Z A P C 0 - - - * * ? * 0 XOR destination,source
Logic destination ← destination XOR source
XOR performs a bit-by-bit "exclusive or" on its two operands, and returns the result in the destination operand. XOR sets each bit of the result to one if only one of the corresponding bits is set to one.
XOR truth table a b a XOR b 0 0 0 0 1 1 1 0 1 1 1 0
Example: mov al,110001b xor al,001101b ; al = 111100b