EasyManuals Logo

Texas Instruments TMS320C28x User Manual

Texas Instruments TMS320C28x
695 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #366 background imageLoading...
Page #366 background image
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

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments TMS320C28x and is the answer not in the manual?

Texas Instruments TMS320C28x Specifications

General IconGeneral
BrandTexas Instruments
ModelTMS320C28x
CategoryProcessor
LanguageEnglish

Related product manuals