EasyManua.ls Logo

Rabbit 2000 - Lret

Rabbit 2000
174 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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
- - - -

Other manuals for Rabbit 2000