The , and functions perform bitwise logical operations and therefore appear more meaningful if the base is set to Hex, Oct or Bin rather than Dec. In the following examples base is set to Bin.
- performs a 1's complement (inverts the bits).
101 Cmpgives 111...111010
- does a logical AND.
101 AND 110 =gives 100
- does the logical OR.
101 OR 110 =gives 111
- performs the logical XOR (exclusive OR) operation.
101 XOR 110 =gives 11