1 Convert the Twos Compliment binary number to decimal 01011

1) Convert the Two\'s Compliment binary number to decimal, 01011011
2) Convert the One\'s Compliment binary number to decimal, 11011111
3) Convert the One\'s Compliment binary number to decimal, 01000011
4) Convert the Two\'s Compliment binary number to decimal, 01000001
5) Subtract the unsigned binary numbers 10111111 and 01010101
6) Subtract the signed binary numbers    10000001 and 00110011
7) Subtract the signed binary numbers   11111111 and 00001111

Solution

1) In two\'s complement , the first bit represents the sign of the number . We have 01011011 , 0 is positive and 1 is negative. Hence it is a positive number.

0*2^7 + 1*2^6+0*2^5+1*2^4+1^2^3+0*2^2+1*2^1+1*2^0 =

0 + 64 + 0 + 16 + 8 + 0 + 2 + 1 = 64 + 16 + 8 + 2 + 1 = 91

2)

To get it in ones complement , flipflop the bits 11011111 = 00100000 = 0*2^7+0*2^6+1*2^5+0*2^4+0*2^3+0*2^2+0*2^1+0*2^0 = 1*2^5 = 32

3) Similarly for this  01000011, flipflop it = 10111100 = 1*2^7 + 0*2^6+1*2^5+1*2^4+1*2^3+1*2^2+0*2^1+0*2^0 = 128 +32+ 16+8+4 = 188

4) Two\'s complement of 01000001 is a positive number .lets convert it into decimal = 0*2^7+1*2^6+0*2^5+0*2^4+0*2^3+0*2^2+0*2^1+1*2^0 = 64+ 1 = 65

1) Convert the Two\'s Compliment binary number to decimal, 01011011 2) Convert the One\'s Compliment binary number to decimal, 11011111 3) Convert the One\'s Co

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site