
<
2
.75
7UGT U/CPWCN
#FFTGUU5RCEG
=L/2*
7/<:
XOR
Logical Exclusive OR
Instruction Format:
XOR dst, src
Operation:
dst
←
dst XOR src
The source operand performs a logical
EXCLUSIVE OR
ed operation, which stores a
1
in the destination
operand whenever the corresponding bits in the two operands are different. The destination operand is set to
1; otherwise, a
0
is stored. The contents of the source operand are not changed.
Flags:
When the instruction is executed, the flags are set as follows:
C:
The value set by the preceding instruction.
Z:
1 if the result is
0
; otherwise, 0.
S:
1 if bit
7
of the result is 1; otherwise, 0.
V:
0.
D:
The value set by the preceding instruction.
H:
The value set by the preceding instruction.
OPC
dst
src
OPC
src
dst
OPC
dst
src
OPC (Hex)
Address Mode
dst src
B2
B3
r
r
r
Ir
B4
B5
R
R
R
IR
B6
B7
R
IR
IM
IM