1's and 2's complement
TRANSCRIPT
![Page 1: 1's and 2's complement](https://reader030.vdocuments.us/reader030/viewer/2022012406/55c9b17cbb61ebb07d8b45a6/html5/thumbnails/1.jpg)
NAME
CH.SHIRAZ
Presenting presentation to….
Sir Saleem
![Page 2: 1's and 2's complement](https://reader030.vdocuments.us/reader030/viewer/2022012406/55c9b17cbb61ebb07d8b45a6/html5/thumbnails/2.jpg)
1’S AND 2’S COMPLEMENT
![Page 3: 1's and 2's complement](https://reader030.vdocuments.us/reader030/viewer/2022012406/55c9b17cbb61ebb07d8b45a6/html5/thumbnails/3.jpg)
COMPLEMENT
A bit with opposite value to the given one is
know as Complement in
Computer Science
![Page 4: 1's and 2's complement](https://reader030.vdocuments.us/reader030/viewer/2022012406/55c9b17cbb61ebb07d8b45a6/html5/thumbnails/4.jpg)
1’S COMPLEMENT
Subtraction of binary
numbers using the 1’s
complement method allows
subtraction only by addition.
![Page 5: 1's and 2's complement](https://reader030.vdocuments.us/reader030/viewer/2022012406/55c9b17cbb61ebb07d8b45a6/html5/thumbnails/5.jpg)
To subtract a smaller number from a larger number, the 1’s complement method is as follow.
![Page 6: 1's and 2's complement](https://reader030.vdocuments.us/reader030/viewer/2022012406/55c9b17cbb61ebb07d8b45a6/html5/thumbnails/6.jpg)
SUBTRACT (1010)2 FROM (1111) 2
![Page 7: 1's and 2's complement](https://reader030.vdocuments.us/reader030/viewer/2022012406/55c9b17cbb61ebb07d8b45a6/html5/thumbnails/7.jpg)
Subtraction of a large number from
a smaller one by the 1’s complement
method involves the following steps
a)The answer is the 1’s complement
of the result and is opposite in sign.
There is no carry.
![Page 8: 1's and 2's complement](https://reader030.vdocuments.us/reader030/viewer/2022012406/55c9b17cbb61ebb07d8b45a6/html5/thumbnails/8.jpg)
2’S COMPLEMENTThe 2’s complement of a
binary number can be
obtained by adding 1 to its 1’s
complement.
![Page 9: 1's and 2's complement](https://reader030.vdocuments.us/reader030/viewer/2022012406/55c9b17cbb61ebb07d8b45a6/html5/thumbnails/9.jpg)
SUBTRACT (1010)2 FROM (1111) 2
![Page 10: 1's and 2's complement](https://reader030.vdocuments.us/reader030/viewer/2022012406/55c9b17cbb61ebb07d8b45a6/html5/thumbnails/10.jpg)