Texas Instruments TMS320C28x Reference Manual page 369

Dsp cpu and instruction set
Table of Contents

Advertisement

MOVL P,ACC
MOVL P,ACC
SYNTAX OPTIONS
MOVL P,ACC
Operands
P
ACC
Description
Flags and
Modes
Repeat
Example
Calculate the 32-bit value: VarC = abs(VarA) + abs(VarB)
MOVL
ABS
MOVL
MOVL
ABS
ADDL
MOVL
6-212
Product register
Accumulator register
Load the P register with the content of the ACC register:
P = ACC;
None
This instruction is not repeatable. If this instruction follows the RPT
instruction, it resets the repeat counter (RPTC) and executes only once.
ACC,@VarA
ACC
P,ACC
ACC,@VarB
ACC
ACC,@P
@VarC,ACC
OPCODE
1111 1111 0101 1010
; Load ACC with contents of VarA
; Take absolute value of VarA
; Temp save ACC in P register
; Load ACC with contents of VarB
; Take absolute value of VarB
; Add contents of P to ACC
; Store result into VarC
Load P From the Accumulator
OBJMODE
RPT
X
CYC
1

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?

Subscribe to Our Youtube Channel

Table of Contents

Save PDF