Chapter 7 Second Development PlatformVP3000
321
D0 = K100, D10 = K200, D20 = K20,000
Remark
If the product of 16-bit multiplication exceeds the expressible range of 16-bit signed numbers,
when the value is larger than the 16-bit maximum positive number (K32767) or when the value
is smaller than the minimum negative number (K-32768), M1022 carry flag is ON, and only write
the value of the lower 16 bits.
If the multiplication result of the 16-bit instruction needs to obtain a complete value (recorded as
32-bit), use API22 MUL / MULP instruction instead. See this description for more details.
If the product of 32-bit multiplication exceeds the expressible range of 32-bit signed numbers,
when the value is larger than the 32-bit maximum positive number (K2147483647) or when the
value is smaller than the minimum negative number (K-2147483648), M1022 carry flag is ON,
and only write the value of the lower 32 bits.
If the multiplication result of the 32-bit instruction needs to obtain a complete value (recorded as
64-bit), use API22 DMUL / DMULP instruction instead. See this description for more details.