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