6 BASIC INSTRUCTIONS
6.2 Arithmetic Operation Instructions
179
6
• Nibble can be specified ranging from K1 to K8 for (d).
For example, when K2 is specified, only the lower-order 8 bits can be obtained out of the product (32 bits).
â– Related flag
Device Name Description
SM8304 Zero When the operation result is 0, the zero flag is turned ON.
Error code
(SD0/SD8067)
Description
2820 The range of the device specified by (d) exceeds said device range.
MUL
K53 K15 K2Y0
×
K15(000FH)
K53(0035H)
K795(031BH)
0 0 0 … 0 0 1 1 0 0 0 1 1 0 1 1
Y27 Y26 Y25 … Y13 Y12 Y11 Y10 Y7 Y6 Y5 Y4 Y3 Y2 Y1 Y0
(d)(s2)(s1)
(s1)
(s2)
(d)
Command
input
When command contact is ON
K2Y0 operation result is output.Not output
Sign bit (0: Positive, 1: Negative)