Binary Addition using 1’s Complement

In binary addition using 1’s complement;

A. Addition of a positive and a negative binary number

We discuss the following cases under this.

Case I: When the positive number has greater magnitude.

In this case addition of numbers is performed after taking 1’s complement of the negative number and the end-around carry of the sum is added to the least significant bit.


The following examples will illustrate this method in binary addition using 1’s complement:

1. Find the sum of the following binary numbers:

(i) + 1110 and - 1101

Solution:

            + 1 1 1 0      ⇒      0 1 1 1 0

            - 1 1 0 1      ⇒      1 0 0 1 0      (taking 1’s complement)

                                      0 0 0 0 0

                                                 1      carry

                                      0 0 0 0 1

Hence the required sum is + 0001.


(ii) + 1101 and - 1011

(Assume that the representation is in a signed 5-bit register).

Solution:

           + 1 1 0 1      ⇒      0 1 1 0 1

            - 1 0 1 1      ⇒      1 0 1 0 0      (taking 1’s complement)

                                      0 0 0 0 1

                                                 1      carry

                                       0 0 0 1 0

Hence the required sum is + 0010.


Case II: When the negative number has greater magnitude.

In this case the addition is carried in the same way as in case 1 but there will be non end-around carry. The sum is obtained by taking 1’s complement of the magnitude bits of the result and it will be negative.


The following examples will illustrate this method in binary addition using 1’s complement:

Find the sum of the following binary numbers represented in a sign-plus-magnitude 5-bit register:

(i) + 1010 and - 1100

Solution:

           + 1 0 1 0      ⇒      0 1 0 1 0

            - 1 1 0 0      ⇒      1 0 0 1 1      (1’s complement)

                                      1 1 1 0 1

Hence the required sum is – 0010.

(ii) + 0011 and - 1101.

Solution:

           + 0 0 1 1      ⇒      0 0 0 1 1

            - 1 1 0 1      ⇒      1 0 0 1 0      (1’s complement)

                                      1 0 1 0 1

Hence the required sum is – 1010.


B. When the two numbers are negative

For the addition of two negative numbers 1’s complements of both the numbers are to be taken and then added. In this case an end-around carry will always appear. This along with a carry from the MSB (i.e. the 4th bit in the case of sign-plus-magnitude 5-bit register) will generate a 1 in the sign bit. 1’s complement of the magnitude bits of the result of addition will give the final sum.

The following examples will illustrate this method in binary addition using 1’s complement:

Find the sum of the following negative numbers represented in a sign-plus-magnitude 5-bit register:

(i) -1010 and -0101

Solution:

            - 1 0 1 0      ⇒      1 0 1 0 1      (1’s complement)

            - 0 1 0 1      ⇒      1 1 0 1 0      (1’s complement)

                                      0 1 1 1 1

                                                 1      carry

                                      1 0 0 0 0

1’s complement of the magnitude bits of sum is 1111 and the sign bit is 1.

Hence the required sum is -1111.


(ii) -0110 and -0111.

Solution:

            - 0 1 1 0      ⇒      1 1 0 0 1      (1’s complement)

            - 0 1 1 1      ⇒      1 1 0 0 0      (1’s complement)

                                      1 0 0 0 1

                                                 1      carry

                                      1 0 0 1 0

1’s complement of 0010 is 1101 and the sign bit is 1.

Hence the required sum is - 1101.

Binary Numbers

  • Decimal Number System
  • Why Binary Numbers are Used
  • Binary to Decimal Conversion
  • Conversion of Numbers
  • Hexa-decimal Number System
  • Conversion of Binary Numbers to Octal or Hexa-decimal Numbers
  • Octal and Hexa-Decimal Numbers
  • Signed-magnitude Representation
  • Radix Complement
  • Diminished Radix Complement
  • Arithmetic Operations of Binary Numbers


From Binary Addition using 1's Complement to HOME PAGE


New! Comments

Have your say about what you just read! Leave me a comment in the box below. Ask a Question or Answer a Question.



Didn't find what you were looking for? Or want to know more information about Math Only Math. Use this Google Search to find what you need.



Share this page: What’s this?

Recent Articles

  1. Multiplication of a Number by a 3-Digit Number |3-Digit Multiplication

    Mar 28, 24 11:44 AM

    Multiplying by 3-Digit Number
    In multiplication of a number by a 3-digit number are explained here step by step. Consider the following examples on multiplication of a number by a 3-digit number: 1. Find the product of 36 × 137

    Read More

  2. Multiply a Number by a 2-Digit Number | Multiplying 2-Digit by 2-Digit

    Mar 27, 24 05:21 PM

    Multiply 2-Digit Numbers by a 2-Digit Numbers
    How to multiply a number by a 2-digit number? We shall revise here to multiply 2-digit and 3-digit numbers by a 2-digit number (multiplier) as well as learn another procedure for the multiplication of…

    Read More

  3. Multiplication by 1-digit Number | Multiplying 1-Digit by 4-Digit

    Mar 26, 24 04:14 PM

    Multiplication by 1-digit Number
    How to Multiply by a 1-Digit Number We will learn how to multiply any number by a one-digit number. Multiply 2154 and 4. Solution: Step I: Arrange the numbers vertically. Step II: First multiply the d…

    Read More

  4. Multiplying 3-Digit Number by 1-Digit Number | Three-Digit Multiplicat

    Mar 25, 24 05:36 PM

    Multiplying 3-Digit Number by 1-Digit Number
    Here we will learn multiplying 3-digit number by 1-digit number. In two different ways we will learn to multiply a two-digit number by a one-digit number. 1. Multiply 201 by 3 Step I: Arrange the numb…

    Read More

  5. Multiplying 2-Digit Number by 1-Digit Number | Multiply Two-Digit Numb

    Mar 25, 24 04:18 PM

    Multiplying 2-Digit Number by 1-Digit Number
    Here we will learn multiplying 2-digit number by 1-digit number. In two different ways we will learn to multiply a two-digit number by a one-digit number. Examples of multiplying 2-digit number by

    Read More