16F84 MICROCHIP [Microchip Technology], 16F84 Datasheet - Page 68

no-image

16F84

Manufacturer Part Number
16F84
Description
18-pin Flash/EEPROM 8-Bit Microcontrollers
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet
PIC16F8X
XORLW
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example:
DS30430C-page 68
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
1010
Read
W
W
Q2
=
=
W)
Process
kkkk
0xAF
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]
1998 Microchip Technology Inc.
127
XORWF
register
REG
W
REG
W
0110
Read
REG
Q2
'f'
destination)
1
Process
dfff
=
=
=
=
f,d
data
Q3
0xAF
0xB5
0x1A
0xB5
destination
ffff
Write to
Q4

Related parts for 16F84