The Gateway to Computer Science Excellence
0 votes
43 views
(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 by Active (1.2k points) | 43 views

1 Answer

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 :)

by Veteran (65.8k points)
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,737 questions
57,391 answers
198,591 comments
105,442 users