This the multi-page printable view of this section.Click here to print.

Return to the regular view of this page.

XOR

Binary Exclusive OR

Table of Contents

\(A \longleftarrow A \oplus s\)

76543210
 
XOR r
10101r
 
XOR n
11101110EE
n
 
XOR (HL)
10101110AE
 
XOR (IX+d)
11011101DD
10101110AE
d
 
XOR (IY+d)
11111101FD
10101110AE
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
XOR A,A
AF14
XOR A,B
A814
XOR A,C
A914
XOR A,D
AA14
XOR A,E
AB14
XOR A,H
AC14
XOR A,L
AD14
XOR A,(HL)
AE17
XOR A,(IX+d)
DDAEnn319
XOR A,(IY+d)
FDAEnn319
XOR A,n
EEnn27
Opcode Matrix Legend
Instruction Opcode hexSize bytesCycle count
 Register Memory Implicit