Texas Instruments TMS320C28x Reference Manual page 267

Dsp cpu and instruction set
Table of Contents

Advertisement

IMPYXUL P,XT,loc32
Example
; Calculate result: Y64 = M64*X64 + B64
; Y64 = Y1:Y0, M64 = M1:M0, X64 = X1:X0, B64 = B1:B0
MOVL
IMPYL
MOVL
ADDUL
MOVL
QMPYUL
MOVL
MOVL
IMPYXUL P,XT,@M0
MOVL
ADDCL
IMPYXUL P,XT,@X0
ADDUL
ADDUL
MOVL
6-110
XT,@X0
; XT
P,XT,@M0
; P
ACC,@B0
; ACC = B0
ACC,@P
; ACC = ACC + P
@Y0,ACC
; Store result into Y0
P,XT,@M0
; P
XT,@X1
; XT
ACC,@P
; ACC = P
; P
XT,@M1
; XT
ACC,@P
; ACC = ACC + P + carry
; P
ACC,@P
; ACC = ACC + P
ACC,@B1
; ACC = ACC + B1
@Y1,P
; Store result into Y1
= X0
= low 32 bits of
(uns M0 * uns X0)
= high 32 bits of (uns M0 * uns X0)
= X1
= low
32 bits of (uns M0 * sign X1)
= M1
= low
32 bits of (sign M1 * uns X0)

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