Worksheet: Two's Complement Answers

 

  1. Convert the following base 10 numbers to 10 bit 2's complement:
    1. 00 0110 1011
    2. 11 0110 0111
  2. For each of the following 2's complement numbers, determine the sign of the numbers, add them, and determine the sign of the sum:
    1. Both numbers are negative, the sum is negative, and there is no overflow:
           1110101010
         + 1101011101
         ------------
           1100000111
    2. Both numbers are positive, the sum is positive, and there is no overflow:
           0011011101
         + 0001100101
         ------------
           0101000010
    3. The first number is negative, the second number is positive, the sum is negative, and there is no overflow:
           1011110100
         + 0011010101
         ------------
           1111001001
  3. For each of the following 16 bit 2's complement additions, determine the sign of the numbers, add them, determine the sign of the sum, and determine whether an overflow occurred:
    1. Both numbers are positive, the sum is positive, and there is no overflow:
           03A9
         + 49B2
         ------
           4D5B
    2. The first number is negative, the second number is positive, the sum is negative, and there is no overflow:
           B403
         + 1357
         ------
           C75A
    3. Both numbers are positive, the sum is negative, and there is overflow:
           7F5E
         + 53BA
         ------
           D318

Email Me | Office Hours | My Home Page | Department Home | MCC Home Page

© Copyright Emmi Schatz 2010