English
Language : 

PIC17C7XX_13 Datasheet, PDF (223/306 Pages) Microchip Technology – High-Performance 8-bit CMOS EPROM Microcontrollers with 10-bit A/D
PIC17C7XX
RLNCF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Rotate Left f (no carry)
[ label ] RLNCF f,d
0  f  255
d  [0,1]
f<n>  d<n+1>;
f<7>  d<0>
None
0010 001d ffff ffff
The contents of register 'f' are rotated
one bit to the left. If 'd' is 0, the result is
placed in WREG. If 'd' is 1, the result is
stored back in register 'f'.
register f
Words:
Cycles:
Q Cycle Activity:
Q1
Decode
1
1
Q2
Read
register 'f'
Q3
Process
Data
Q4
Write to
destination
Example:
RLNCF
REG, 1
Before Instruction
C
=0
REG = 1110 1011
After Instruction
C
=
REG = 1101 0111
RRCF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Rotate Right f through Carry
[ label ] RRCF f,d
0  f  255
d  [0,1]
f<n>  d<n-1>;
f<0>  C;
C  d<7>
C
0001 100d ffff 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
WREG. If 'd' is 1, the result is placed
back in register 'f'.
C
register f
Words:
Cycles:
Q Cycle Activity:
Q1
Decode
1
1
Q2
Read
register 'f'
Q3
Process
Data
Q4
Write to
destination
Example:
RRCF REG1,0
Before Instruction
REG1 = 1110 0110
C
=0
After Instruction
REG1 =
WREG =
C
=
1110 0110
0111 0011
0
 1998-2013 Microchip Technology Inc.
DS30289C-page 223