English
Language : 

PIC17C7XX_13 Datasheet, PDF (231/306 Pages) Microchip Technology – High-Performance 8-bit CMOS EPROM Microcontrollers with 10-bit A/D
XORLW
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Q1
Decode
Exclusive OR Literal with
WREG
[ label ] XORLW k
0 k 255
(WREG) .XOR. k WREG)
Z
1011 0100 kkkk kkkk
The contents of WREG are XOR’ed
with the 8-bit literal 'k'. The result is
placed in WREG.
1
1
Q2
Read
literal 'k'
Q3
Process
Data
Q4
Write to
WREG
Example:
XORLW 0xAF
Before Instruction
WREG = 0xB5
After Instruction
WREG = 0x1A
PIC17C7XX
XORWF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Q1
Decode
Exclusive OR WREG with f
[ label ] XORWF f,d
0  f  255
d  [0,1]
(WREG) .XOR. (f) dest)
Z
0000 110d ffff ffff
Exclusive OR the contents of WREG
with register 'f'. If 'd' is 0, the result is
stored in WREG. If 'd' is 1, the result is
stored back in the register 'f'.
1
1
Q2
Read
register 'f'
Q3
Process
Data
Q4
Write to
destination
Example:
XORWF REG, 1
Before Instruction
REG = 0xAF
WREG = 0xB5
1010 1111
1011 0101
After Instruction
REG = 0x1A
WREG = 0xB5
0001 1010
 1998-2013 Microchip Technology Inc.
DS30289C-page 231