Texas Instruments TMS320C28x Reference Manual page 373

Dsp cpu and instruction set
Table of Contents

Advertisement

MOVL XT,loc32
MOVL XT,loc32
SYNTAX OPTIONS
MOVL XT, loc32
Operands
T
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
MOVL
QMPYAL P,XT,@C1
MOVL
MOVL
QMPYAL P,XT,@C0
MOVL
ADDL
MOVL
6-216
Upper 16 bits of the multiplicand register (XT)
Addressing mode (see Chapter 5)
Load the XT register with the 32-bit content of the location pointed to by the
"loc32" addressing mode:
XT = [loc32];
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
; P = XT*C1
@X2,XT
; X2 = X1
XT,@X0
; XT = X0, ACC = X1*C1 >> 2 + X2*C2 >> 2
; P = XT*C0
@X1,XT
; X1 = X0
ACC,P << PM
; ACC = X0*C0 >> 2 + X1*C1 >> 2 + X2*C2 >> 2
@Y,ACC
; Store result into Y
OPCODE
1000 0111 LLLL LLLL
Load the XT Register
OBJMODE
RPT
CYC
1
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