English
Language : 

PIC17C4X Datasheet, PDF (133/240 Pages) Microchip Technology – High-Performance 8-Bit CMOS EPROM/ROM Microcontroller
PIC17C4X
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
Execute
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
Execute
Q4
Write to
destination
Example:
RRCF
Before Instruction
REG1 = 1110 0110
C
=0
After Instruction
REG1 =
WREG =
C
=
1110 0110
0111 0011
0
REG1,0
© 1996 Microchip Technology Inc.
DS30412C-page 133