PIC16C71X
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
Process
data
Q4
Write to
dest
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
Process
data
Q4
Write to
dest
Example
RRF
REG1,0
Before Instruction
REG1 =
C
=
After Instruction
REG1 =
W
=
C
=
1110 0110
0
1110 0110
0111 0011
0
© 1997 Microchip Technology Inc.
DS30272A-page 81