253
Second Subtraction
0000
CIO 0200 –7577
CY –0
CIO 0200 2423 (0000 + (10000 – 7577))
CY 1 (negative result)
In the above case, the program would turn ON CIO 002100 to indicate that the
value held in CIO 0200 is negative.
5-18-5 BCD MULTIPLY: MUL(072)
Variations
j MUL(072)
(072)
MUL Md Mr R
Operand Data AreasLadder Symbol
Md: Multiplicand word CIO, G, A, T, C, #, DM, DR, IR
R: Result word CIO, G, A, DM
Mr: Multiplier word CIO, G, A, T, C, #, DM, DR, IR
When the execution condition is OFF, MUL(072) is not executed. When the
execution condition is ON, MUL(072) multiplies Md by the content of Mr, and
places the result in R and R+1.
Md
Mr
R +1 R
X
Note With version-2 CVM1 CPUs, mathematics instructions can use symbols. The
instructions corresponding to MUL(072) and MULL(076) are
*
B(424) and
*
BL(425).
Md and Mr must be BCD.
Note Refer to page 115 for general precautions on operand data areas.
Flags ER (A50003): Content of Md or Mr is not BCD.
The content of a *DM word is not BCD when set for BCD.
EQ (A50006): The result is 0.
Description
Precautions
BCD Calculation Instructions Section 5-18