![background image](http://html1.mh-extra.com/html/texas-instruments/tms320c28x/tms320c28x_reference-manual_1097071267.webp)
IMPYXUL P,XT,loc32
6-110
Example
; Calculate result: Y64 = M64*X64 + B64
; Y64 = Y1:Y0, M64 = M1:M0, X64 = X1:X0, B64 = B1:B0
MOVL XT,@X0
; XT = X0
IMPYL P,XT,@M0
; P = low 32 bits of (uns M0 * uns X0)
MOVL ACC,@B0
; ACC = B0
ADDUL ACC,@P
; ACC = ACC + P
MOVL @Y0,ACC
; Store result into Y0
QMPYUL P,XT,@M0
; P = high 32 bits of (uns M0 * uns X0)
MOVL XT,@X1
; XT = X1
MOVL ACC,@P
; ACC = P
IMPYXUL P,XT,@M0
; P = low 32 bits of (uns M0 * sign X1)
MOVL XT,@M1
; XT = M1
ADDCL ACC,@P
; ACC = ACC + P + carry
IMPYXUL P,XT,@X0
; P = low 32 bits of (sign M1 * uns X0)
ADDUL ACC,@P
; ACC = ACC + P
ADDUL ACC,@B1
; ACC = ACC + B1
MOVL @Y1,P
; Store result into Y1
Summary of Contents for TMS320C28x
Page 30: ...1 12...
Page 80: ...This page intentionally left blank 2 50 This page intentionally left blank...
Page 269: ...IN loc16 PA 6 112 MOV AL 0 AL 0 UOUT IORegC AL IOspace IORegC AL 10...
Page 308: ...MAXCUL P loc32 6 151 Saturate MOVL Var64 2 ACC Store result into Var64 MOVL Var64 P...
Page 509: ...SUBL ACC P PM 6 352 SUBL ACC P PM ACC S B 11 M X 4 MOVH Y ACC 5 Store Q15 result into Y...
Page 585: ...This page intentionally left blank 7 32 This page intentionally left blank...