Datasheet

PIC17C4X
DS30412C-page 132 1996 Microchip Technology Inc.
RETURN Return from Subroutine
Syntax: [
label
] RETURN
Operands: None
Operation: TOS PC;
Status Affected: None
Encoding:
0000 0000 0000 0010
Description:
Return from subroutine. The stack is
popped and the top of the stack (TOS)
is loaded into the program counter.
Words: 1
Cycles: 2
Q Cycle Activity:
Q1 Q2 Q3 Q4
Decode Read
register
PCL*
Execute NOP
Forced NOP NOP Execute NOP
* Remember reading PCL causes PCLATH to be updated.
This will be the high address of where the RETURN instruc-
tion is located.
Example:
RETURN
After Interrupt
PC = TOS
RLCF Rotate Left f through Carry
Syntax: [
label
] RLCF f,d
Operands: 0 f 255
d [0,1]
Operation: f<n> d<n+1>;
f<7> C;
C d<0>
Status Affected: C
Encoding:
0001 101d ffff ffff
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
WREG. If 'd' is 1 the result is stored
back in register 'f'.
Words: 1
Cycles: 1
Q Cycle Activity:
Q1 Q2 Q3 Q4
Decode Read
register 'f'
Execute Write to
destination
Example:
RLCF REG,0
Before Instruction
REG = 1110 0110
C=0
After Instruction
REG = 1110 0110
WREG = 1100 1100
C=1
C
register f