PIC16C63A/65B/73B/74B
RETFIE
Return from Interrupt
[ label ] RETFIE
None
RLF
Rotate Left f through Carry
Syntax:
Syntax:
Operands:
[ label ] RLF f,d
Operands:
Operation:
0 ≤ f ≤ 127
d ∈ [0,1]
TOS → PC,
1 → GIE
Operation:
See description below
C
None
Status Affected:
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
[ label ] RETLW k
0 ≤ k ≤ 255
RRF
Rotate Right f through Carry
Syntax:
Syntax:
Operands:
[ label ] RRF f,d
Operands:
Operation:
0 ≤ f ≤ 127
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
prescaler are cleared.
The processor is put into SLEEP
mode with the oscillator stopped. See
Section 13.8 for more details.
2000 Microchip Technology Inc.
DS30605C-page 105