(2N-1)or-天津大学计算机学院
Store –40 in a 16-bit memory location using two’s complement representation. First change the number to binary 101000. Add ten 0s to make a total of N (16) bits, 0000000000101000. The sign is negative, so leave the rightmost 0s up to the first 1 (including the 1) unchanged and complement the rest. The result is: 1111111111011000 Solution Example 13 Example of storing two’s complement integers in two different computers Decimal------------ +7 -7 +124 -124 +24,760 -24,760 8-bit allocation ------------1111100110000100 overflow overflow 16-bit allocation -
您可能关注的文档
- 山西省朔州市平鲁区李林中学高中化学选修五羧酸酯(第2课时)学案.doc
- 山西省朔州市平鲁区李林中学高中化学选修五酯(第一课时)学案.doc
- 山西省运城市临猗中学高中化学选修五第三节羧酸酯(第一课时).doc
- 山西省运城市临猗中学高中化学选修五第四节有机合成(第一课时).doc
- 广东省惠州市惠阳一中实验学校高二化学《氨基酸、蛋白质》学案.doc
- 广东省惠州市惠阳一中实验学校高二化学《酚》学案.doc
- 广东省梅州市五华县城镇中学高中化学选修五课件:第一节有机化合的分类.ppt
- 广东省梅州市五华县城镇中学高中化学选修五课件:苯和芳香烃第二课时.ppt
- 广州六中高中化学选修5烃的含氧衍生物醇练习.doc
- 引入型阅读.doc
原创力文档

文档评论(0)