Cmp, And, Or and Xor

The Cmp, And and Or 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.

Cmp performs a 1's complement (inverts the bits).

101 Cmp gives 111...111010

AND does a logical AND.

101 AND 110 = gives 100

OR does the logical OR.

101 OR 110 = gives 111

XOR performs the logical XOR (exclusive OR) operation.

101 XOR 110 = gives 11