Bitwise-Exclusive OR
XOR
13-249
Assembly Language Instructions
Syntax XOR
src, dst
Operation
dst
XOR
src
dst
Operands
src
general addressing modes (G):
0 0 register (R
n
, 0
n
27)
0 1 direct
1 0 indirect (disp = 0–255, IR0, IR1)
1 1 immediate
dst
register (R
n
, 0
n
27)
Opcode
31 2423 16 8 7 015
00011 0
1 10
dst
G
src
Description The bitwise-exclusive OR of the
src
and
dst
operands is loaded into the
dst
register. The
dst
and
src
operands are assumed to be unsigned integers.
Cycles 1
Status Bits These condition flags are modified only if the destination register is R7–R0.
LUF Unaffected
LV Unaffected
UF 0
NMSB of the output
Z1 if a 0 output is generated; 0 otherwise
V0
CUnaffected
OVM Operation is not affected by OVM bit value.
Example XOR R1,R2
Before Instruction After Instruction
R1 00 000F FA32 R1 00 000F F412
R2 00 000F F5C1 R2 00 0000 0FF3
LUF 0LUF 0
LV 0LV 0
UF 0UF 0
N0N0
Z0Z0
V0V0
C0C0
Mode Bit