Professional Documents
Culture Documents
There are four cases that can occur when two signed binary numbers are added.
It may also be mentioned here that, in general, 2’s complement notation can be
used to perform addition when the expected result of addition lies in the range
from
METHODOLOGY FOR 2’S-COMPLEMENT ADDITION
5. If the MSB is 0, then the answer is positive i.e., it is in true form. If MSB
of the result is 1, then the answer is negative i.e., it is in 2’s complement
form. So, we have to obtain 2’s complement of this result to get final
answer.
CASE 1
BOTH MINUEND AND SUBTRAHEND ARE POSITIVE (THE
SUBTRAHEND IS THE SMALLER OF THE TWO)
CASE 2
BOTH MINUEND AND SUBTRAHEND ARE POSITIVE
(THE SUBTRAHEND IS THE SMALLER OF THE TWO)
CASE 3
THE MINUEND IS POSITIVE
(THE SUBTRAHEND IS NEGATIVE AND SMALLER IN MAGNITUDE)
CASE 4
THE MINUEND IS POSITIVE
(THE SUBTRAHEND IS NEGATIVE AND GREATER IN MAGNITUDE)
CASE 5
BOTH MINUEND AND SUBTRAHEND ARE NEGATIVE (THE
MINUEND IS THE SMALLER OF THE TWO)
CASE 6
BOTH MINUEND AND SUBTRAHEND ARE NEGATIVE (THE
MINUEND IS THE LARGER OF THE TWO)
OVERFLOW RULE FOR SUBTRACTION