Because A−B=A+(−B), the subtraction of signed numbers can be accomplished by adding the complement. Subtract the given binary numbers by adding the complement of the subtrahend to the minuend. Indicate when an overflow occurs. Assume that negative numbers are represented in 2’s complement. a. 01001−11010

Respuesta :

Using 1's complement

  • a) Therefore the difference is -10001
  • b) Therefore the difference is 00001
  • c) Therefore the difference is 01001
  • d) Therefore the difference is 10100
  • e) Therefore the difference is 00111

Calculation and Parameters

a) The 1's complement of the subtrahend 11010 = 00101.

Therefore 01001-11010 = 01001 + 00101 = 01110

Since no overflow, we take the 1's complement of the result and it is negative.

Therefore the difference is -10001

b) The 1's complement of the subtrahend 11001 = 00110.

Therefore 11010-11001 = 11010 + 00110 =1 00000

Since there is an overflow, we add the overflow to the result

Therefore the difference is 00001

Repeat the same process for the others.

Read more about 1's complement here:

https://brainly.com/question/16697336

#SPJ1