MOVL ACC,P << PM
SYNTAX OPTIONS
MOVL ACC,P << PM
Note:
This instruction is an alias for the "MOVP T,loc16" operation with "loc16 = @T" addressing mode.
Operands
ACC
P
<< PM
Description
Flags and
N
Modes
Z
PM
Repeat
Example
; Calculate: Y = Y + (M*X >> 4)
; Y is a 32-bit value, M and X are 16-bit values
SPM
MOV
MPY
MOVL
ADDL
Accumulator register
Product register
Product shift mode
Load the ACC register with the content of the P register shifted as specified
by the product shift mode (PM):
ACC = P << PM;
After the load, the N flag is set if bit 31 of the ACC is 1, else N is cleared.
After the load, the Z flag is set if the ACC is zero, else Z is cleared.
The value in the PM bits sets the shift mode for the output operation from the
product register. If the product shift value is positive (logical left shift
operation), then the low bits are zero filled. If the product shift value is
negative (arithmetic right shift operation), the upper bits are sign extended.
This instruction is not repeatable. If this instruction follows the RPT
instruction, it resets the repeat counter (RPTC) and executes only once.
−4
T,@M
P,T,@X
ACC,P << PM
@Y,ACC
Load the Accumulator With Shifted P
OPCODE
0001 0110 1010 1100
; Set product shift to >> 4
; T = M
; P = M * X
; ACC = M*X >> 4
; Y = Y + ACC
MOVL ACC,P << PM
OBJMODE
RPT
CYC
X
−
1
6-205
Need help?
Do you have a question about the TMS320C28x and is the answer not in the manual?