MOVL P,loc32
6-213
MOVL P,loc32
Load the P Register
SYNTAX OPTIONS
OPCODE
OBJMODE
RPT
CYC
MOVL P,loc32
1010 0011 LLLL LLLL
1
−
1
Operands
P
Product register
loc32
Addressing mode (see Chapter 5)
Description
Load the P register with the 32-bit location pointed to by the “loc32”
addressing mode:
P = [loc32];
Flags and
Modes
None
Repeat
This instruction is not repeatable. If this instruction follows the RPT
instruction, it resets the repeat counter (RPTC) and executes only once.
Example
; Add 64-bit VarA, VarB and VarC, and store result in VarD:
MOVL P,@VarA+0
; Load P with low 32 bits of VarA
MOVL ACC,@VarA+2
; Load ACC with high 32 bits of VarA
ADDUL P,@VarB+0
; Add to P unsigned low 32 bits of VarB
ADDCL ACC,@VarB+2
; Add to ACC with carry high 32 bits of VarB
ADDUL P,@VarC+0
; Add to P unsigned low 32 bits of VarC
ADDCL ACC,@VarC+2
; Add to ACC with carry high 32 bits of VarC
MOVL @VarD+0,P
; Store low 32-bit result into VarD
MOVL @VarD+2,ACC
; Store high 32-bit result into VarD
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...