![background image](http://html1.mh-extra.com/html/rabbit/2000/2000_instruction-and-reference-manual_3112735098.webp)
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
-
-
-
-
Содержание 2000
Страница 2: ...ii Rabbit 2000 3000 Microprocessor...
Страница 4: ...iv Rabbit 2000 Microprocessor...
Страница 16: ...12 Rabbit 2000 3000 Microprocessor...
Страница 164: ...160 Instruction Reference Manual...
Страница 172: ...168 Rabbit 2000 3000 Microprocessor...
Страница 174: ...170 Rabbit 2000 3000 Microprocessor...