Texas Instruments TMS320C28x Reference Manual page 246

Dsp cpu and instruction set
Table of Contents

Advertisement

DMOV loc16
SYNTAX OPTIONS
DMOV loc16
Operands
loc16
Description
Flags and
Modes
Repeat
Example
; Calculate using 16-bit multiply:
; int16 X[3];
; int16 C[3];
; Y = (X[0]*C[0] >> 2) + (X[1]*C[1] >> 2) + (X[2]*C[2] >> 2);
; X[2] = X[1];
; X[1] = X[0];
SPM
MOVP
MPYS
MOVA
MPY
MOVA
MPY
ADDL
DMOV
DMOV
MOVL
1010 0101 LLLL LLLL
Addressing mode (see Chapter 5)
Note:
For this operation, register−addressing modes cannot be used. The modes are:
@ARn, @AH, @AL, @PH, @PL, @SP, @T. An illegal instruction trap will be
generated.
Copy the contents pointed to by "loc16" into the next highest address:
[loc16 + 1] = [loc16];
None
This instruction is repeatable. If the operation is follows a RPT instruction,
then it will be executed N+1 times.
−2
; Set product shift to >> 2
T,@X+2
; T = X[2]
P,T,@C+2
; P = T*C[2], ACC = 0
T,@X+1
; T = X[1], ACC = X[2]*C[2] >> 2
P,T,@C+1
; P = T*C[1]
T,@X+0
; T = X[0], ACC = ACC + X[1]*C[1] >> 2
P,T,@C+0
; P = T*C[0]
ACC,P << PM
; ACC = ACC + X[0]*C[0] >> 2
@X+1
; X[2] = X[1]
@X+0
; X[1] = X[0]
@Y,ACC
; Store result into Y
Data Move Contents of 16-bit Location
OPCODE
OBJMODE
DMOV loc16
RPT
CYC
1
Y
N+1
6-89

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