11001 / 101 , 110000/011
-
Upload
ian-chavez -
Category
Documents
-
view
69 -
download
0
description
Transcript of 11001 / 101 , 110000/011
![Page 1: 11001 / 101 , 110000/011](https://reader036.fdocuments.us/reader036/viewer/2022062301/5681337c550346895d9a8a98/html5/thumbnails/1.jpg)
![Page 2: 11001 / 101 , 110000/011](https://reader036.fdocuments.us/reader036/viewer/2022062301/5681337c550346895d9a8a98/html5/thumbnails/2.jpg)
![Page 3: 11001 / 101 , 110000/011](https://reader036.fdocuments.us/reader036/viewer/2022062301/5681337c550346895d9a8a98/html5/thumbnails/3.jpg)
11001 / 101 , 110000/011
![Page 4: 11001 / 101 , 110000/011](https://reader036.fdocuments.us/reader036/viewer/2022062301/5681337c550346895d9a8a98/html5/thumbnails/4.jpg)
![Page 5: 11001 / 101 , 110000/011](https://reader036.fdocuments.us/reader036/viewer/2022062301/5681337c550346895d9a8a98/html5/thumbnails/5.jpg)
1.18) Perform subtraction on the given unsigned binary numbers using the 2's complement of the subtrahend.Where the result should be negative, find its 2‘s complement and affix: a minus sign.
1 0 0 1 1 – 1 0 0 0 1 | 1 0 0 1 – 1 0 1 0 0 0
![Page 6: 11001 / 101 , 110000/011](https://reader036.fdocuments.us/reader036/viewer/2022062301/5681337c550346895d9a8a98/html5/thumbnails/6.jpg)
Find the 5-bit signed magnitude, 1’s and two’s complement representation of the decimal number. (-5)
![Page 7: 11001 / 101 , 110000/011](https://reader036.fdocuments.us/reader036/viewer/2022062301/5681337c550346895d9a8a98/html5/thumbnails/7.jpg)
Overflow
40+30 ( 7 bit signed number )
0 _ 1 0 1 0 0 0 0 _ 0 1 1 1 1 0
![Page 8: 11001 / 101 , 110000/011](https://reader036.fdocuments.us/reader036/viewer/2022062301/5681337c550346895d9a8a98/html5/thumbnails/8.jpg)
Perform the addition of following 8-bit two’s complement binary numbers. Indicate if there is an overflow or not.
11100100 + 10011100
![Page 9: 11001 / 101 , 110000/011](https://reader036.fdocuments.us/reader036/viewer/2022062301/5681337c550346895d9a8a98/html5/thumbnails/9.jpg)
+49: 0 _ 1 1 0 0 0 1 -49: 1 _ 0 0 1 1 1 1
+29: 0 _ 0 1 1 1 0 1 -29: 1 _ 1 0 0 0 1 1
![Page 10: 11001 / 101 , 110000/011](https://reader036.fdocuments.us/reader036/viewer/2022062301/5681337c550346895d9a8a98/html5/thumbnails/10.jpg)
![Page 11: 11001 / 101 , 110000/011](https://reader036.fdocuments.us/reader036/viewer/2022062301/5681337c550346895d9a8a98/html5/thumbnails/11.jpg)
86 + 48
![Page 12: 11001 / 101 , 110000/011](https://reader036.fdocuments.us/reader036/viewer/2022062301/5681337c550346895d9a8a98/html5/thumbnails/12.jpg)
![Page 13: 11001 / 101 , 110000/011](https://reader036.fdocuments.us/reader036/viewer/2022062301/5681337c550346895d9a8a98/html5/thumbnails/13.jpg)
0101 0001 0011 0111
![Page 14: 11001 / 101 , 110000/011](https://reader036.fdocuments.us/reader036/viewer/2022062301/5681337c550346895d9a8a98/html5/thumbnails/14.jpg)
Complement bit 6
A: 100 0001
a: 110 0001
![Page 15: 11001 / 101 , 110000/011](https://reader036.fdocuments.us/reader036/viewer/2022062301/5681337c550346895d9a8a98/html5/thumbnails/15.jpg)
Other Codes
![Page 16: 11001 / 101 , 110000/011](https://reader036.fdocuments.us/reader036/viewer/2022062301/5681337c550346895d9a8a98/html5/thumbnails/16.jpg)
ASCII Code• American Standard Code for Information Interchange (ASCII)
16
![Page 17: 11001 / 101 , 110000/011](https://reader036.fdocuments.us/reader036/viewer/2022062301/5681337c550346895d9a8a98/html5/thumbnails/17.jpg)
ASCII Properties
– Digits 0 to 9 span Hexadecimal values 3016 to 3916
– Upper case A-Z span 4116 to 5A16
– Lower case a-z span 6116 to 7A16
– Lower to upper case translation (and vice versa) occurs by flipping bit 6.