English
Language : 

PIC17C75X Datasheet, PDF (217/320 Pages) Microchip Technology – High-Performance 8-Bit CMOS EPROM Microcontrollers
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
PIC17C75X
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
After Instruction
REG = 0x1A
WREG = 0xB5
© 1997 Microchip Technology Inc.
DS30264A-page 217