
1996 Microchip Technology Inc.
DS30412C-page 133
PIC17C4X
RLNCF
Rotate Left f (no carry)
Syntax:
[
label ] RLNCF
f,d
Operands:
0
≤ f ≤ 255
d
∈ [0,1]
Operation:
f<n>
→ d<n+1>;
f<7>
→ d<0>
Status Affected:
None
Encoding:
0010
001d
ffff
Description:
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'.
Words:
1
Cycles:
1
Q Cycle Activity:
Q1
Q2
Q3
Q4
Decode
Read
register 'f'
Execute
Write to
destination
Example:
RLNCF
REG, 1
Before Instruction
C=
0
REG
=
1110 1011
After Instruction
C=
REG
=
1101 0111
register f
RRCF
Rotate Right f through Carry
Syntax:
[
label ]
RRCF f,d
Operands:
0
≤ f ≤ 255
d
∈ [0,1]
Operation:
f<n>
→ d<n-1>;
f<0>
→ C;
C
→ d<7>
Status Affected:
C
Encoding:
0001
100d
ffff
Description:
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'.
Words:
1
Cycles:
1
Q Cycle Activity:
Q1
Q2
Q3
Q4
Decode
Read
register 'f'
Execute
Write to
destination
Example:
RRCF
REG1,0
Before Instruction
REG1
=
1110 0110
C=
0
After Instruction
REG1
=
1110 0110
WREG
=
0111 0011
C=
0
C
register f