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




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.



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.

Share this page: What’s this?

Recent Articles

  1. 3-digit Numbers on an Abacus | Learning Three Digit Numbers | Math

    Oct 08, 24 10:53 AM

    3-Digit Numbers on an Abacus
    We already know about hundreds, tens and ones. Now let us learn how to represent 3-digit numbers on an abacus. We know, an abacus is a tool or a toy for counting. An abacus which has three rods.

    Read More

  2. Names of Three Digit Numbers | Place Value |2- Digit Numbers|Worksheet

    Oct 07, 24 04:07 PM

    How to write the names of three digit numbers? (i) The name of one-digit numbers are according to the names of the digits 1 (one), 2 (two), 3 (three), 4 (four), 5 (five), 6 (six), 7 (seven)

    Read More

  3. Worksheets on Number Names | Printable Math Worksheets for Kids

    Oct 07, 24 03:29 PM

    Traceable math worksheets on number names for kids in words from one to ten will be very helpful so that kids can practice the easy way to read each numbers in words.

    Read More

  4. The Number 100 | One Hundred | The Smallest 3 Digit Number | Math

    Oct 07, 24 03:13 PM

    The Number 100
    The greatest 1-digit number is 9 The greatest 2-digit number is 99 The smallest 1-digit number is 0 The smallest 2-digit number is 10 If we add 1 to the greatest number, we get the smallest number of…

    Read More

  5. Missing Numbers Worksheet | Missing Numerals |Free Worksheets for Kids

    Oct 07, 24 12:01 PM

    Missing numbers
    Math practice on missing numbers worksheet will help the kids to know the numbers serially. Kids find difficult to memorize the numbers from 1 to 100 in the age of primary, we can understand the menta

    Read More