Texas Instruments TMS320C28x Reference Manual page 286

Dsp cpu and instruction set
Table of Contents

Advertisement

LPADDR
SYNTAX OPTIONS
LPADDR
Note:
LPADDR is an alias for the SETC AMODE Operation.
Operands
Description
Flags and
AMODE
Modes
Repeat
Example
; Execute the operation "VarC = VarA + VarB" written in C2xLP syntax:
LPADDR
.lp_amode
LDP
LACL
ADDS
SACL
C28ADDR
.c28_amode
0101 0110 0001 1110
None
Set the AMODE status bit, putting the device in C2xLP compatible
addressing mode (see Chapter 5).
Note:
This instruction does not flush the pipeline.
The AMODE bit is set.
This instruction is not repeatable. If this instruction follows the RPT
instruction, it resets the repeat counter (RPTC) and executes only once.
#VarA
VarA
VarB
VarC
OPCODE
; Full C2xLP address compatible mode
; Tell assembler we are in C2XLP mode
; Initialize DP (low 64K only)
; ACC = VarA (ACC high = 0)
; ACC = ACC + VarB (unsigned)
; Store result into VarC
; Return to C28x address mode
; Tell assembler we are in C28x mode
LPADDR
Set the AMODE Bit
OBJMODE
RPT
CYC
X
1
6-129

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the TMS320C28x and is the answer not in the manual?

Table of Contents

Save PDF