Specifications

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 9: Instruction Set
Operation: (f(n)) -> d(n-1), f(0) -> C, C -> d(7);
Operand: 0 f 127, d -> [0,1]
Status affected: C
Number of cycles: 1
Fig. 9-2 f Register
EXAMPLE 1:
....
[label] RRF REG,w
Before instruction execution: REG = 1110 0110
W = x
C = 0
After instruction: REG = 1110 0110
W = 0111 0011
C = 0
EXAMPLE 2:
....
[label] RRF REG,f
Before instruction execution: REG = 1110 0110, C = 0
After instruction: REG = 0111 0011, C = 0
http://www.mikroe.com/en/books/picmcubook/ch9/ (28 of 35)5/3/2009 11:35:12 AM