Detailed reference for the RRNCF instruction in PIC18 ISA.
Rotate the contents of file register f one bit position to the right without affecting the C (carry) flag.
; d=0, a=0 → rotate right, result in WREG, Access bank
RRNCF 0x20, 0, 0 ; W = 0x20 >> 1 (carry unchanged); d=0, a=0 → rotate right, result in WREG, Access bank
RRNCF 0x20, 0, 0 ; W = 0x20 >> 1 (carry unchanged); d=0, a=1 → rotate right, result in WREG, Banked address
RRNCF 0x20, 0, 1 ; W = 0x20 >> 1 (carry unchanged); d=0, a=1 → rotate right, result in WREG, Banked address
RRNCF 0x20, 0, 1 ; W = 0x20 >> 1 (carry unchanged); d=1, a=0 → rotate right, result back to f, Access bank
RRNCF 0x20, 1, 0 ; 0x20 = 0x20 >> 1 (carry unchanged); d=1, a=0 → rotate right, result back to f, Access bank
RRNCF 0x20, 1, 0 ; 0x20 = 0x20 >> 1 (carry unchanged); d=1, a=1 → rotate right, result back to f, Banked address
RRNCF 0x20, 1, 1 ; 0x20 = 0x20 >> 1 (carry unchanged); d=1, a=1 → rotate right, result back to f, Banked address
RRNCF 0x20, 1, 1 ; 0x20 = 0x20 >> 1 (carry unchanged); WREG preloaded with literal (unused), result in WREG
MOVLW 0xAB
RRNCF 0x20, 0, 0 ; W = 0x20 >> 1 (carry unchanged); WREG preloaded with literal (unused), result in WREG
MOVLW 0xAB
RRNCF 0x20, 0, 0 ; W = 0x20 >> 1 (carry unchanged)