What is the meaning of XOR in x86 assembly?

A XOR B in english would be translated as “are A and B not equal”. So xor ax, ax will set ax to zero since ax is always equal to itself.

A B | A XOR B
0 0 | 0
1 0 | 1
0 1 | 1
1 1 | 0

Leave a Comment