3. Instruction Set API 114 Operands: S 1 : Multiplicand S 2 : Multiplicator D : Product Explanations: 1. MUL16 and MUL16P are 16-bit instructions. MUL32 and MUL32P are 32-bit instructions. 2. The signed binary value in S 1 is multiplied by the signed binary value in S 2 , and the product is stored in D . Notice that it is applicable to normal algebraic regulations. 3. If the sign bit is 0, it represents a positive value. If the sign bit is 1, it represents a negative value. 4. The models which are supported are DVP-ES2/EX2 v. 3.22, DVP-SS2 v. 3.20, DVP-SA2/SX2 v. 2.66, and DVP-SE v.1.60 (and above). 5. 16-bit binary multiplication S 1 D S 2 b15................ b0 X = b15................
b0 b15................ b0 b15 is a sign bit. b15 is a sign bit. b15 is a sign bit. 16-bit value 16-bit value 16-bit value If D is a bit device, users can use K1~K4, and form 16 bits. D only occupies 16 bits. 6. 32-bit binary multiplication S 1 S 1 +1 S 2 S 2 +1 D D +1 b31.......b16 b15.........b0 b31.......b16 b15.........b0 b31.......b16 b15.........b0 X = b31 is a sign bit b31 is a sign bit b31 is a sign bit 32-bit value 32-bit value 32-bit value If D is a word device, users can use K1~K8, and forms 32 bits. D only occupies 32 bits.
3-319 Mnemonic Operands Function Controllers MUL16 MUL32 P 16-bit Multiplication 32-bit Multiplication ES2/EX2 SS2 SA2 SX2 SE Type OP Bit Devices Word devices Program Steps X Y M S K H KnX KnY KnM KnS T C D E F MUL16, MUL16P:7 steps MUL32, MUL32P:13 steps S 1 * * * * * * * * * * S 2 * * * * * * * * * * D * * * * * * * PULSE 16-bit 32-bit ES2/EX2 SA2 SA2 SA2 SS2 SX2 ES2/EX2 SS2 SX2 ES2/EX2 SS2 SX2 SE SE SE