Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The Bitwise XOR operator performs a bitwise XOR of the bits of the first operand with the bits of the second operand. Bitwise XOR can be used in both variable and integer constant expressions, but not in floating-point constant expressions. 

Each bit of the two operands is subject to the following logic:

...

Bitwise XOR has an assignment form, ^=, that uses the variable to its left as both the first operand and the result destination. For example,

Code Block
X ^= $F      'Short form of X := X ^ $F

...