DVP-ES2/EX2/SS2/SA2/SX2/SE&TP Operation Manual - Programming If D is specified with a word device, it can specify K1~K8 to store a 32-bit result. Users can use 2 consecutive 32-bit registers to store 64-bit data. If the product of a 32-bit multiplication must be a 32-bit value (32-bit value x 32-bit value = 32-bit value), users have to use API 114 MUL32/MUL32P. Please refer to the explanation of API 114 MUL32/MUL32P for more information. Program Example: The 16-bit D0 is multiplied by the 16-bit D10 and brings forth a 32-bit product. The higher 16 bits are stored in D21 and the lower 16-bit are stored in D20. ON/OFF of MSB indicates the positive/negative status of the operation result.
X0 (D0) Ч (D10) = (D21, D20) 16-bit Ч 16-bit = 32-bit 3-78 MUL D0 D10 D20