OR

Binary OR

\(A \longleftarrow A \lor s\)

76543210
 
OR r
10110r
 
OR n
11110110F6
n
 
OR (HL)
10110110B6
 
OR (IX+d)
11011101DD
10110110B6
d
 
OR (IY+d)
11111101FD
10110110B6
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
hreset
p/vset if overflow
creset
Opcode Matrix
ABCDEHL(HL)(IX+d)(IY+d)n
A
OR A,A
B714
OR A,B
B014
OR A,C
B114
OR A,D
B214
OR A,E
B314
OR A,H
B414
OR A,L
B514
OR A,(HL)
B617
OR A,(IX+d)
DDB6nn319
OR A,(IY+d)
FDB6nn319
OR A,n
F6nn27
Opcode Matrix Legend
Instruction Opcode hexSize bytesCycle count
 Register Memory Implicit

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