AND

Binary AND

\(A \longleftarrow A \land s\)

76543210
 
AND r
10100r
 
AND n
11100110E6
n
 
AND(HL)
10100110A6
 
AND (IX+d)
11011101DD
10100110A6
d
 
AND (IY+d)
11111101FD
10100110A6
d
Registers
Registerr
B000
C001
D010
E011
H100
L101
A111
Flags Affected
Flags
sz-h-p/v-c
sset if result negative
zset if result is 0
hset
p/vset if overflow
creset
Opcode Matrix
ABCDEHL(HL)(IX+d)(IY+d)n
A
AND A,A
A714
AND A,B
A014
AND A,C
A114
AND A,D
A214
AND A,E
A314
AND A,H
A414
AND A,L
A514
AND A,(HL)
A617
AND A,(IX+d)
DDA6nn319
AND A,(IY+d)
FDA6nn319
AND A,n
E6nn27
Opcode Matrix Legend
Instruction Opcode hexSize bytesCycle count
 Register Memory Implicit

Last modified November 16, 2021: Add flags to math operations (63d34c2)