94
Rabbit 2000/3000 Microprocessor
Description
The
LRET
transfers execution from a subroutine to the calling program by popping PC and the XPC off of
the stack, in order to return from an
LCALL
operation.
First, the low order byte of PC is loaded with the data whose address is in SP. Next, the high order byte of PC
is loaded with the data whose address is one plus the data in SP and XPC is loaded with the data whose
address is two plus the data in SP. Finally the value in SP is incremented by 3.
LRET
Opcode
Instruction
Clocks
Operation
ED 45
LRET
13 (2,2,1,2,2,2,2)
PC
(low)
= (SP);
PC
(high)
= (SP+1);
XPC = (SP + 2);
SP = SP + 3
Flags
ALTD
I/O
S
Z
L/V
C
F
R
SP
S
D
-
-
-
-
Summary of Contents for 2000
Page 2: ...ii Rabbit 2000 3000 Microprocessor...
Page 4: ...iv Rabbit 2000 Microprocessor...
Page 16: ...12 Rabbit 2000 3000 Microprocessor...
Page 164: ...160 Instruction Reference Manual...