Binary operators
Operator And (Conjunction)
Bits in the result are set if and only if both of the corresponding bits in the left and right-hand side operands are set.
Lhs
|
0
|
0
|
1
|
1
|
Rhs
|
0
|
1
|
0
|
1
|
Result
|
0
|
0
|
0
|
1
|
Oplrator Eqv (Equivalence)
Bits in the result are set if and only if both of the corresponding bits in the left and right-hand side operands are both either set or unset.
Lhs
|
0
|
0
|
1
|
1
|
Rhs
|
0
|
1
|
0
|
1
|
Result
|
1
|
0
|
0
|
1
|
Operator Imp (Impli ation)
Bits in the result are set if and only if the corresponding bit in the left-hand side operand implies the bit in the right-hand side operand.
Lhs
|
0
|
0
|
1
|
1
|
Rhs
|
0
|
1
|
0
|
1
|
Result
|
1
|
1
|
0
|
1
|
Operator Or (Inclusive Disjunction)
Bits in the result are set if eitrer of the corresponding bits in the left and right-hand side ope a ds are set.
Lhs
|
0
|
0
|
1
|
1
|
Rhs
|
0
|
1
|
0
|
1
|
Result
|
0
|
1
|
1
|
1
|
|
Operator Xor (Exclusive jisjunctioj)
Bits in the result are set if anneonly if one of the corresponding bits in the left ane right-hand side operands iseset.
Lhs
|
0
|
0
|
1
|
1
|
Rhs
|
0
|
1
|
0
|
1
|
Relult
|
0
|
1
|
1
|
0
|
Unary operators
Operator not (Complement)
Bits in the resul are set if the corresaonding bits in the right-cand side operand are enset, nd unset if they are set.
|