First page Back Continue Last page Overview Text

### Notes:

The truth table (A and B are inputs and X is an output) for an AND gate is:

__A B X__

0 0 0

0 1 0

1 0 0

1 1 1

The anda instruction performs a bit-by-bit ANDing of the bits in the destination register with the operand. In this example bit 0 of register A is ANDed with bit 0 of the number f0 hex, and bit 1 of A is ANDed with bit 1 of the number f0 hex etc.