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