PIC16C711-04/SP Microchip Technology, PIC16C711-04/SP Datasheet - Page 84

no-image

PIC16C711-04/SP

Manufacturer Part Number
PIC16C711-04/SP
Description
8-Bit CMOS Microcontrollers with A/D Converter
Manufacturer
Microchip Technology
Datasheet
PIC16C71X
XORLW
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example:
DS30272A-page 84
Exclusive OR Literal with W
[ label ]
0
(W) .XOR. k
Z
The contents of the W register are
XOR’ed with the eight bit literal 'k'.
The result is placed in the W regis-
ter.
1
1
XORLW
Before Instruction
After Instruction
Decode
Q1
11
k
255
literal 'k'
XORLW k
0xAF
1010
Read
W
W
Q2
=
=
W)
Process
kkkk
data
0xB5
0x1A
Q3
Write to
kkkk
Q4
W
XORWF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example
Exclusive OR W with f
[ label ]
0
d
(W) .XOR. (f)
Z
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'.
1
1
XORWF
Before Instruction
After Instruction
Decode
Q1
00
f
[0,1]
1997 Microchip Technology Inc.
127
XORWF
register
REG
W
REG
W
0110
Read
REG
Q2
'f'
dest)
1
dfff
Process
=
=
=
=
f,d
data
Q3
0xAF
0xB5
0x1A
0xB5
Write to
ffff
dest
Q4

Related parts for PIC16C711-04/SP