
4.LADDER LANGUAGE B-63983EN/02
- 326 -
4.10.7 MUL (BCD Multiplication: SUB 21)
Multiplies BCD two- or four-digit data. The product must also be BCD
two- or four-digit data.
Format
Fig. 4.10.7 shows the ladder format and Table 4.10.7 shows the
mnemonic format.
MUL
SUB 21
RST
¡
¡¡¡¡
¡¡¡¡
¡¡¡¡
¡¡¡¡.¡
CT
¡¡¡¡.¡
W1
¡¡¡¡.¡
Data format of multiplier (constant or address)
Multiplicand address
Multiplier
Product output address
Error output
BYT
¡¡¡¡.¡
Control conditions
Fig. 4.10.7 Format of MUL instruction
Table 4.10.7 Mnemonic of MUL instruction
Mnemonic format
Memory status of control
condition
Step
number
Instruction
Address
No.
Bit No. Remarks ST3 ST2 ST1 ST0
1RD ¡¡¡¡ .¡ BYT BYT
2 RD. STK ¡¡¡¡ .¡ RST BYT RST
3 RD. STK ¡¡¡¡ .¡ ACT BYT RST ACT
4 SUB 21 MUL instruction
5(PRM) ¡ Data format of multiplier
6(PRM) ¡¡¡¡ Multiplicand address
7(PRM) ¡¡¡¡ Multiplier (address)
8(PRM) ¡¡¡¡ Product output address
9WRT ¡¡¡¡ .¡ Error output W1