Texas Instruments TMS320C28x Reference Manual page 337

Dsp cpu and instruction set
Table of Contents

Advertisement

MOV T, loc16
MOV T, loc16
SYNTAX OPTIONS
MOV T, loc16
Operands
T
loc16
Description
Flags and
Modes
Repeat
Example
; Calculate using 16-bit multiply:
; Y = (X0*C0) >> 2) + (X1*C1 >> 2) + (X2*C2 >> 2)
; X2 = X1
; X1 = X0
SPM
MOV
MPY
MOVP
MPY
MOV
MOVA
MPY
MOV
ADDL
MOVL
6-180
Upper 16 bits of the multiplicand register (XT)
Addressing mode (see Chapter 5)
Load the T register with the 16-bit contents of the location pointed to by the
"loc16" addressing mode:
T = [loc16];
None
This instruction is not repeatable. If this instruction follows the RPT
instruction, it resets the repeat counter (RPTC) and executes only once.
−2
; Set product shift to >> 2
T,@X2
; T = X2
P,T,@C2
; P = T*C2
T,@X1
; T = X1, ACC = X2*C2 >> 2
P,T,@C1
; P = T*C1
@X2,T
; X2 = X1
T,@X0
; T = X0, ACC = X1*C1 >> 2 + X2*C2 >> 2
P,T,@C0
; P = T*C0
@X1,T
; X1 = X0
ACC,P << PM
; ACC = X0*C0 >> 2 + X1*C1 >> 2 + X2*C2 >> 2
@Y,ACC
; Store result into Y
Load the Upper Half of the XT Register
OPCODE
0010 1101 LLLL LLLL
OBJMODE
RPT
CYC
X
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