264
In the following example, 20F55A10 – B8A360E3 = 97AE06D3. In the rightmost
four-digit subtraction, Su is less than Mi, so CY (A50004) becomes 1, and the
result of the leftmost four-digit subtraction is decremented by 1. In the final cal-
culations, 0000 – F9D2 = 0000 + (10000 – F9D2) = 06D3.
0000 – 6851 –1
(because CY is 1)
= 0000 + (10000 – 6851 – 1) = 97AE.
The content of 0102, 0001, indicates a negative result.
R: 0100
F92D
Mi: 0010
5A10
Su: D00100
60E3
–
R+1: 0101
6851
Mi+1: 0011
20F5
Su+1: D00101
B8A3
–
CY = 1
Rightmost 4 Digits Leftmost 4 Digits
R+2: 0102 R+1: 0101 R: 0100
000197AE06D3
5A10 + (10000 – 60E3)
–
10
–
20F5 + (10000 – B8A3) – 1
CY = 0
(from CLC(079))
CY = 1
0000
R: 0100
F92D
R: 0100
06D3
R+1: 0101
6851
R: 0101
97AE
––
CY = 1
0000 + (10000 – F92D)
–
10
–
0000 + (10000 – 6851) – 1
CY = 0
(from CLC(079))
0000
Converting 2’s Complement
5-19-3 BINARY MULTIPLY: MLB(082)
Variations
j MLB(082)
(082)
MLB 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, MLB(082) is not executed. When the
execution condition is ON, MLB(082) multiplies the content of Md by the content
of Mr, places the rightmost four digits of the result in R, and places the leftmost
four digits in R+1.
Md
Mr
R +1 R
X
Description
Binary Calculation Instructions Section 5-19