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