277
DOUBLE SIGNED BINARY SUBTRACT WITH CARRY: –CL(413)
Variations
j –CL(413)
(413)
–CL Mi Su R
Operand Data AreasLadder Symbol
Mi: Minuend word CIO, G, A, T, C, #, DM,
R: Result word CIO, G, A, DM,
Su: Subtrahend word CIO, G, A, T, C, #, DM,
SIGNED BINARY SUBTRACT WITHOUT CARRY
When the execution condition is OFF, –(410) is not executed. When the execu-
tion condition is ON, –(410) subtracts the contents of Su from Mi and places the
result in R. If the subtraction resulted in a borrow, CY is set. To obtain the true
answer when the result is negative, the 2’s complement placed in R must be sub-
tracted from 0000.
Mi – Su CY R
DOUBLE SIGNED BINARY SUBTRACT WITHOUT CARRY
When the execution condition is OFF, –L(411) is not executed. When the execu-
tion condition is ON, –L(411) subtracts the 8-digit value in Su and Su+1 from the
8-digit value in Mi and Mi+1, and places the result in R and R+1. If the subtraction
resulted in a borrow, CY is set.
Mi + 1 Mi
Su + 1 Su
R + 1 R
–
CY
SIGNED BINARY SUBTRACT WITH CARRY
When the execution condition is OFF, –C(412) is not executed. When the execu-
tion condition is ON, –C(412) subtracts the contents of Su and CY from Mi and
places the result in R. If the subtraction resulted in a borrow, CY is set.
Mi – Su – CY CY R
DOUBLE SIGNED BINARY SUBTRACT WITH CARRY
When the execution condition is OFF, –CL(413) is not executed. When the
execution condition is ON, –CL(413) subtracts CY and the 8-digit value in Su
and Su+1 from the 8-digit value in Mi and Mi+1, and places the result in R and
R+1. If the subtraction resulted in a borrow, CY is set.
Mi + 1 Mi
Su + 1 Su
R + 1 R
–
CY
CY
Precautions Refer to page 115 for general precautions on operand data areas.
Description
Symbol Math Instructions Section 5-20