Texas Instruments TMS320C28x Reference Manual page 358

Dsp cpu and instruction set
Table of Contents

Advertisement

MOVDL XT,loc16
SYNTAX OPTIONS
MOVDL XT,loc16
Operands
XT
loc32
Description
Flags and
Modes
Repeat
Example
; Calculate using 32-bit multiply, retaining high result:
; Y = (X0*C0) >> 2) + (X1*C1 >> 2) + (X2*C2 >> 2)
SPM
ZAPA
MOVL
QMPYL
MOVDL
QMPYAL P,XT,@C1
MOVDL
QMPYAL P,XT,@C0
ADDL
MOVL
Multiplicand register
Addressing mode (see Chapter 5)
Note:
For this operation, register-addressing modes cannot be used. The modes are:
@XARn, @ACC, @P, @XT. An illegal instruction trap will be generated.
Load the XT register with the 32-bit content of the location pointed to by the
"loc32" addressing mode and then load the next highest 32-bit location
pointed to by "loc32" with the content of XT:
XT = [loc32];
[loc32 + 2] = XT;
None
This instruction is not repeatable. If this instruction follows the RPT
instruction, it resets the repeat counter (RPTC) and executes only once.
; X2 = X1
; X1 = X0
−2
; Set product shift to >> 2
; Zero ACC, P, OVC
XT,@X2
; XT = X2
P,XT,@C2
; P = XT*C2
XT,@X1
; XT = X1, ACC = X2*C2>>2, X2 = X1
; P = XT*C1
XT,@X0
; XT = X0, ACC = X1*C1>>2 + X2*C2>>2, X1 = X0
; P = XT*C0
ACC,P << PM
; ACC = X0*C0>>2 + X1*C1>>2 + X2*C2>>2
@Y,ACC
; Store result into Y
OPCODE
1010 0110 LLLL LLLL
MOVDL XT,loc16
Store XT and Load New XT
OBJMODE
RPT
1
Y
CYC
N+1
6-201

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