Cmp, And, Or and Xor
Prev
Next

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

Prev
Next
Home


Would you like to comment or contribute an update to this page?
Send feedback to the TDE Development Team