XOR: Logical Exclusive OR: The XOR operation is again carried out in a similar way to the AND and OR operation. The constraint over operands are also similar. The XOR operation produces a high output, when the 2 input bits are not similar. Or else, the output is 0.The example instructions are as follows:
If the content of AX is 3FOFH, then the first instance instruction will be executed as described. The result 3F97H will be stored in AX.