LRET
LRET
SYNTAX OPTIONS
LRET
Operands
Description
Flags and
Modes
Repeat
Example
; Standard function call of FuncA:
FuncA:
6-130
None
Long return. The return address is popped, from the software stack into the
PC, in two 16-bit operations:
SP = SP – 1;
temp(31:16) = [SP];
SP = SP − 1;
temp(15:0) = [SP];
PC = temp(21:0);
None
Note:
For more efficient function calls when operating with OBJMODE = 1, use the LCR and
LRETR instructions in place of the LC and LRET instructions.
This instruction is not repeatable. If this instruction follows the RPT
instruction, it resets the repeat counter (RPTC) and executes only once.
LC
FuncA
.
.
.
.
LRET
OPCODE
0111 0110 0001 0100
; Call FuncA, return address on stack
; Function A:
; Return from address on stack
Long Return
OBJMODE
RPT
CYC
X
−
8
Need help?
Do you have a question about the TMS320C28x and is the answer not in the manual?