English
Language : 

PIC17C7XX Datasheet, PDF (229/328 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
Exclusive OR WREG with f
Syntax:
[ label ] XORWF f,d
Operands:
0 ≤ f ≤ 255
d ∈ [0,1]
Operation:
(WREG) .XOR. (f) → (dest)
Status Affected: Z
Encoding:
0000 110d ffff ffff
Description:
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'.
Words:
1
Cycles:
1
Q Cycle Activity:
Q1
Decode
Q2
Read
register 'f'
Q3
Process
Data
Q4
Write to
destination
Example:
XORWF REG, 1
Before Instruction
REG = 0xAF
WREG = 0xB5
After Instruction
REG = 0x1A
WREG = 0xB5
© 1998 Microchip Technology Inc.
DS30289A-page 229