PIC16C925/926
RETURN
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
1st Cycle
2nd Cycle
Return from Subroutine
[ label ] RETURN
None
TOS → PC
None
00
0000 0000
1000
Return from subroutine. The stack is
POPed and the top of the stack (TOS)
is loaded into the program counter.
This is a two-cycle instruction.
1
2
Q1
Q2
Q3
Q4
Decode
No
No Pop from
Operation Operation the Stack
No
No
No
No
Operation Operation Operation Operation
Example
RETURN
After Interrupt:
PC = TOS
RLF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Rotate Left f through Carry
[ label ] RLF f [,d]
0 ≤ f ≤ 127
d ∈ [0,1]
See description below
C
00 1101 dfff ffff
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
Words:
Cycles:
Q Cycle Activity:
1
1
Q1 Q2 Q3
Q4
Decode
Read
register
’f’
Process Write to
data destination
Example
RLF
REG1,0
Before Instruction:
REG1 = 1110 0110
C
=0
After Instruction:
REG1 = 1110 0110
W
= 1100 1100
C
=1
2001 Microchip Technology Inc.
Preliminary
DS39544A-page 127