in Digital Logic
1,291 views
0 votes
0 votes
(a) Assume the integers below are 1’s complement integers. Find the 1’s complement
of each number, and give the decimal values of the original number and of
its complement.
(i) 0000000 (ii) 1111111 (iii) 00110011 (iv) 1000000
(b) Repeat part (a) assuming the numbers are 2’s complement numbers and finding
the 2’s complement of them.
in Digital Logic
1.3k views

1 Answer

0 votes
0 votes

read https://gateoverflow.in/209179/self-doubt?show=218459#a218459 before reading further

 Assume the integers below are 1’s complement integers.

i)  0000000  -----> MSB bit is 0 ==> positive number 

       decimal value of original number = 0

       1's complement of given number is = 1111111 , Note that this is belongs to 1's complement representation, So it's decimal equivalent is -0.

 

(ii) 1111111 -----> MSB bit is 1 ==> negative number 

       decimal value of original number = -0

       1's complement of given number is = 0000000 , Note that this is belongs to 1's complement representation, So it's decimal equivalent is 0.

 

(iii) 00110011  -----> MSB bit is 0 ==> positive number 

       decimal value of original number = 51

       1's complement of given number is = 11001100 , Note that this is belongs to 1's complement representation, So it's decimal equivalent is -51.

 

(iv) 1000000  -----> MSB bit is 1 ==> negative number 

       decimal value of original number = -111111 = -63

       1's complement of given number is = 0111111 , Note that this is belongs to 1's complement representation, So it's decimal equivalent is 63.

 

hope you can do for part b :)