MPYU P,T,loc16
6-239
MPYU P,T,loc16 Unsigned 16 X 16 Multiply
SYNTAX OPTIONS OPCODE OBJMODE RPT CYC
MPYU P,T,loc16 0011 0111 LLLL LLLL X − 1
Operands P Product register
T Multiplicand register
loc16 Addressing mode (see Chapter 5)
Description Multiply the signed 16-bit content of the T register by the signed 16-bit
contents of the location pointed to by the “loc16” addressing mode and store
the 32-bit result in the P register:
P = unsigned T * unsigned [loc16];
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
; Calculate unsigned value: Y32 = X16 * M16;
MOV T,@X16 ; T = X16
MPYU P,T,@M16 ; P = T * M16
MOVL @Y,P ; Store result into Y32