Texas Instruments TMS320C28x Reference Manual page 461

Dsp cpu and instruction set
Table of Contents

Advertisement

QMPYL P,XT,loc32
QMPYL P,XT,loc32
SYNTAX OPTIONS
QMPYL P,XT,loc32
Operands
P
XT
loc32
Description
Flags and
Modes
Repeat
Example
; Calculate signed result: Y64 = M32*X32 + B64
MOVL
IMPYL
MOVL
ADDUL
MOVL
QMPYL
ADDCL
MOVL
6-304
0101 0110 0110 0111
0000 0000 LLLL LLLL
Product register
Multiplicand register
Addressing mode (see Chapter 5)
Multiply the signed 32-bit content of the XT register by the signed 32-bit
content of the location pointed to by the "loc32" addressing mode and store
the upper 32−bits of the 64-bit result (a Q30 number) in the P register:
P = (signed XT * signed [loc32]) >> 32;
None
This instruction is not repeatable. If this instruction follows the RPT
instruction, it resets the repeat counter (RPTC) and executes only once.
XT,@M32
P,XT,@X32
ACC,@B64+2
P,@B64+0
@Y64+0,P
P,XT,@X32
ACC,@P
@Y64+2,ACC
Signed 32 X 32-bit Multiply (Upper Half)
OPCODE
; XT
= M32
; P
= low 32−bits of (M32*X32)
; ACC = high 32−bits of B64
; P
= P + low 32−bits of B64
; Store low 32-bit result into Y64
; P
= high 32−bits of (M32*X32)
; ACC = ACC + P + carry
; Store high 32-bit result into Y64
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?

Table of Contents

Save PDF