PIC16C62B/72A
RETFIE
Return from Interrupt
[ label ] RETFIE
None
RLF
Rotate Left f through Carry
[ label ] RLF f,d
0 ≤ f ≤ 127
Syntax:
Syntax:
Operands:
Operands:
Operation:
d
[0,1]
TOS → PC,
1 → GIE
Operation:
See description below
C
Status Affected: None
Status Affected:
Description:
The contents of register ’f’ are rotated
one bit to the left through the Carry
Flag. If ’d’ is 0, the result is placed in
the W register. If ’d’ is 1, the result is
stored back in register ’f’.
C
Register f
RETLW
Return with Literal in W
RRF
Rotate Right f through Carry
[ label ] RRF f,d
0 ≤ f ≤ 127
Syntax:
[ label ] RETLW k
Syntax:
Operands:
Operands:
Operation:
0 ≤ k ≤ 255
d
[0,1]
k → (W);
TOS → PC
Operation:
See description below
C
Status Affected: None
Status Affected:
Description:
The W register is loaded with the eight
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
the W register. If ’d’ is 1, the result is
placed back in register ’f’.
Description:
bit literal ’k’. The program counter is
loaded from the top of the stack (the
return address). This is a two cycle
instruction.
C
Register f
RETURN
Syntax:
Return from Subroutine
[ label ] RETURN
None
SLEEP
Syntax:
[ label ] SLEEP
None
Operands:
Operation:
Operands:
Operation:
TOS → PC
00h → WDT,
0 → WDT prescaler,
1 → TO,
Status Affected: None
Return from subroutine. The stack is
Description:
0 → PD
POPed and the top of the stack (TOS)
is loaded into the program counter.
This is a two cycle instruction.
Status Affected:
Description:
TO, PD
The power-down status bit, PD is
cleared. Time-out status bit, TO is
set. Watchdog Timer and its pres-
caler are cleared.
The processor is put into SLEEP
mode with the oscillator stopped.
See Section 10.13 for more details.
1999 Microchip Technology Inc.
Preliminary
DS35008B-page 73