Texas Instruments TMS320C2XX Calculator User Manual


 
Multiply
MPY
7-113
Assembly Language Instructions
Syntax MPY
dma
Direct addressing
MPY
ind
[, AR
n
] Indirect addressing
MPY #
k
Short immediate addressing
Operands dma: 7 LSBs of the data-memory address
n: Value from 0 to 7 designating the next auxiliary register
k: 13-bit short immediate value
ind: Select one of the following seven options:
* *+ *– *0+ *0– *BR0+ *BR0–
MPY
dma
1514131211109876543210
0
10101000 dma
MPY
ind
[, AR
n
]
1514131211109876543210
0
10101001 ARU N NAR
Note: ARU, N, and NAR are defined in Section 6.3,
Indirect Addressing Mode
(page 6-9).
MPY #
k
1514131211109876543210
1
10 k
Execution Increment PC, then ...
Event Addressing mode
(TREG) × (data-memory address) PREG Direct or indirect
(TREG) × k PREG Short immediate
Status Bits None
Description The contents of TREG are multiplied by the contents of the addressed data
memory location. The result is placed in the product register (PREG). With
short immediate addressing, TREG is multiplied by a signed 13-bit constant.
The short-immediate value is right justified and sign extended before the multi-
plication, regardless of SXM.
Words 1
Opcode