MOVL loc32,P
6-209
MOVL loc32,P
Store the P Register
SYNTAX OPTIONS
OPCODE
OBJMODE
RPT
CYC
MOVL loc32,P
1010 1001 LLLL LLLL
1
−
1
Operands
loc32
Addressing mode (see Chapter 5)
P
Product register
Description
Store the P register contents into the location pointed to by the “loc32”
addressing mode:
[loc32] = P;
Flags and
Modes
N
If (loc32 = @ACC) and bit 31 of the ACC register is 1, then the N bit is set;
otherwise, N is cleared.
Z
If (loc32 = @ACC) and the value of ACC after the load is zero, then the Z bit is
set; otherwise Z is cleared.
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...