Instruction Reference Manual 25
Description
Performs a logical AND operation between the word in HL and the word in DE. The relative bits of each byte
are compared (i.e., bit 0 of both bytes are compared, bit 1 of both bytes are compared, etc.). The associated bit
in the result byte is set only if both the compared bits are set. The result is stored in HL.
Description
• AND IX,DE performs a logical AND operation between the word in IX and the word in DE.
TheresultisstoredinIX.
• AND IY,DE performs a logical AND operation between the word in IY and the word in DE.
TheresultisstoredinIY.
The relative bits of each byte are compared (i.e., bit 0 of both bytes are compared, bit 1 of both bytes are com-
pared, etc.). The associated bit in the result byte is set only if both the compared bits are set.
AND HL,DE
Opcode Instruction Clocks Operation
DC AND HL,DE 2 HL = HL & DE
Flags ALTD I/O
S Z L/V C F R SP S D
• • L 0 • •
AND IX,DE
AND IY,DE
Opcode Instruction Clocks Operation
DD DC AND IX,DE 4 (2,2) IX = IX & DE
FD DC AND IY,DE 4 (2,2) IY = IY & DE
Flags ALTD I/O
S Z L/V C F R SP S D
• • L 0 •