MOVX TL,loc16
6-224
MOVX TL,loc16 Load Lower Half of XT With Sign Extension
SYNTAX OPTIONS OPCODE OBJMODE RPT CYC
MOVX TL,loc16
0101 0110 0010 0001
xxxx xxxx LLLL LLLL
1 − 1
Operands TL Lower 16 bits of the multiplicand register (XT)
loc32 Addressing mode (see Chapter 5)
Description Load the lower 16 bits of the multiplicand register (TL) with the 16-bit
contents of the location pointed to by the “loc16” addressing mode and then
sign extend that value into the upper upper 16 bits of XT:
TL = [loc16];
T = sign extension of TL;
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 and keep low 32-bit result: Y32 = M32*X16
MOVX TL,@X16 ; XT = S:X16
IMPYL P,XT,@M32 ; P = XT * M32 (low 32 bits of result)
MOVL @Y32,P ; Store result into Y32