1's Complement Representation :- Reverse of the value is called as 1's complement of that value.Look at the table below:- First...
1's Complement Representation:-Reverse of the value is called as 1's complement of that value.Look at the table below:-
First table is normal(from 0 to 7)
Second table is the example of 1's complement(from -0 to -7)
First table is normal(from 0 to 7)
First table is normal(from 0 to 7)
0 | 0 | 0 | 0 |
0 | 0 | 0 | 1 |
0 | 0 | 1 | 0 |
0 | 0 | 1 | 1 |
0 | 1 | 0 | 0 |
0 | 1 | 0 | 1 |
0 | 1 | 1 | 0 |
0 | 1 | 1 | 1 |
1 | 1 | 1 | 1 |
1 | 1 | 1 | 0 |
1 | 1 | 0 | 1 |
1 | 1 | 0 | 0 |
1 | 0 | 1 | 1 |
1 | 0 | 1 | 0 |
1 | 0 | 0 | 1 |
1 | 0 | 0 | 0 |
From above tables,the Range of 1's complement is:-
Range=-7 to +7
=(2^3-1) to (2^3-1)
Range=-(2^k-1) to +(2^k-1)
2's Complement Representation:-2's complement is equal to 1's complement + 1.
First table is normal(from 0 to 7)
0 | 0 | 0 | 0 | 0 |
1 | 0 | 0 | 0 | 1 |
2 | 0 | 0 | 1 | 0 |
3 | 0 | 0 | 1 | 1 |
4 | 0 | 1 | 0 | 0 |
5 | 0 | 1 | 0 | 1 |
6 | 0 | 1 | 1 | 0 |
7 | 0 | 1 | 1 | 1 |
Second table is the example of 2's complement(from -0 to -7)
COMMENTS