Texas Instruments TMS320C28x Reference Manual page 336

Dsp cpu and instruction set
Table of Contents

Advertisement

MOV PM, AX
SYNTAX OPTIONS
MOV PM, AX
Operands
AX
Description
Flags and
PM
Modes
Repeat
Example
; Calculate: Y32 = (M16*X16 >> Shift) + B32, Shift = 0 to 6
CLRC
MOV
AL,@Shift
ADDB
MOV
PM,AX
MOV
T,@X16
MPY
P,XT,@M16
MOVL
ADDL
MOVL
Accumulator high (AH) or accumulator low (AL) registers.
Load the product shift mode (PM) bits with the 3 least significant bits of
register AX.
PM = AX(2:0);
The product shift mode bits are loaded with the 3 least significant bits of
AX.
This instruction is not repeatable. If this instruction follows the RPT
instruction, it resets the repeat counter (RPTC) and executes only once.
AMODE
; Make sure AMODE = 0
; Load AL with contents of "Shift"
AL,#1
; Convert "Shift" to PM encoding
; Load PM bits with encoded "Shift" value
; T
; P
ACC,@B32
; ACC = B32
ACC,P << PM
; ACC = ACC + (P >> Shift)
@Y32,ACC
; Store result into Y32
OPCODE
0101 0110 0011 100A
= X16
= X16*M16
MOV PM, AX
Load Product Shift Mode
OBJMODE
RPT
CYC
1
6-179
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