PIC16C71X
XORLW
Exclusive OR Literal with W
[label] XORLW k
XORWF
Syntax:
Exclusive OR W with f
[label] XORWF f,d
0 ≤ f ≤ 127
Syntax:
Operands:
Operands:
Operation:
Status Affected:
Encoding:
0 ≤ k ≤ 255
d
[0,1]
(W) .XOR. k → (W)
Operation:
(W) .XOR. (f) → (dest)
Z
Status Affected:
Encoding:
Z
11
1010 kkkk kkkk
00
0110
dfff
ffff
The contents of the W register are
XOR’ed with the eight bit literal 'k'.
The result is placed in the W regis-
ter.
Description:
Exclusive OR the contents of the W
register with register 'f'. If 'd' is 0 the
result is stored in the W register. If 'd'
is 1 the result is stored back in register
'f'.
Description:
Words:
1
1
Cycles:
Words:
1
1
Q Cycle Activity:
Q1
Q2
Q3
Q4
Cycles:
Decode
Read
literal 'k'
Process Write to
Q Cycle Activity:
Q1
Q2
Q3
Q4
data
W
Decode
Read
register
'f'
Process
data
Write to
dest
Example:
XORLW
0xAF
Before Instruction
REG
1
Example
XORWF
W
=
0xB5
0x1A
Before Instruction
After Instruction
REG
W
=
=
0xAF
0xB5
W
=
After Instruction
REG
W
=
=
0x1A
0xB5
DS30272A-page 84
1997 Microchip Technology Inc.