English
Language : 

PIC16F8X_13 Datasheet, PDF (67/128 Pages) Microchip Technology – 18-pin Flash/EEPROM 8-Bit Microcontrollers
PIC16F8X
RLF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Rotate Left f through Carry
[ label ]
RLF f,d
0  f  127
d  [0,1]
See description below
C
00 1101 dfff ffff
The contents of register 'f' are rotated
one bit to the left through the Carry
Flag. If 'd' is 0 the result is placed in the
W register. If 'd' is 1 the result is stored
back in register 'f'.
C
Register f
Words:
Cycles:
Q Cycle Activity:
1
1
Q1
Decode
Q2
Read
register
'f'
Q3
Q4
Process Write to
data destination
Example
RLF
REG1,0
Before Instruction
REG1 =
C
=
After Instruction
REG1 =
W
=
C
=
1110 0110
0
1110 0110
1100 1100
1
RRF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Rotate Right f through Carry
[ label ] RRF f,d
0  f  127
d  [0,1]
See description below
C
00 1100 dfff ffff
The contents of register 'f' are rotated
one bit to the right through the Carry
Flag. If 'd' is 0 the result is placed in the
W register. If 'd' is 1 the result is placed
back in register 'f'.
C
Register f
Words:
Cycles:
Q Cycle Activity:
1
1
Q1
Decode
Q2
Read
register
'f'
Q3
Q4
Process Write to
data destination
Example
RRF
REG1,0
Before Instruction
REG1 =
C
=
After Instruction
REG1 =
W
=
C
=
1110 0110
0
1110 0110
0111 0011
0
 1996-2013 Microchip Technology Inc.
DS30430D-page 67