AND r

Operation

A <- A & r

Mnemonic

AND

Operands

r

b7b6b5b4b3b2b1b0
1 0 1 0 0 r

Description

A logical AND operation is performed between the contents of register r and the contents of the Accumulator. The result is stored in the Accumulator. The r symbol identifies the registers A, B, C, D, E, H, or L, assembled as follows in the object code:

RegisterrHex
A111$A7
B000$A0
C001$A1
D010$A2
E011$A3
H100$A4
L101$A5

Condition Bits Affected

Sis set if result is negative, otherwise it is reset.
Zis set if result is 0, otherwise it is reset.
His set.
P/Vis reset if overflow, otherwise it is reset
Nis reset.
Cis reset.

Example

If REgister B contains $7B (0111 1011) and the Accumulator contains $C3 (1100 0011), then upon the execution of

	AND	B

the Accumulator contains $43 (0100 0011).