- 1、本文档共88页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
[工学]计算机导论-讲稿2
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 ---------------------------- 0000000000000111 1111111111111001 0000000001111100 1111111110000100 0110000010111000 1001111101001000 Interpretation How do you interpret a twos complement binary represen-tation in decimal? The process involves these steps: 1. If the leftmost bit is 0 (positive number), a. Change the whole number from binary to decimal. b. Put a plus sign (+) in front of the number . 2. If the leftmost bit is 1 (negative number), a. Leave the rightmost bits up to the first 1 (inclusive) unchanged. Complement the rest of the bits. b. Change the whole number from binary to decimal. c. Put a negative sign (-) in front of the number. Interpret in decimal if the number was stored as a two’s complement integer. The leftmost bit is 1. The number is negative. Leave 10 at the right alone and complement the rest. The result is. The two’s complement number is 10. So the original number was –10. Solution Example 14 Summary of integer representation Contents of Memory------------ 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111 Unsigned ------------ 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Sign-and-Magnitude --------- +0 +1 +2 +3 +4 +5 +6 +7 -0 -1 -2 -3 -4 -5 -6 -7 One’sComplement --------- +0 +1 +2 +3 +4 +5 +6 +7 -7 -6 -5 -4 -3 -2 -1 -0 Two’sComplement ---
您可能关注的文档
- [工学]第一课绪论.ppt
- [工学]第七章 典型果蔬制品的加工.ppt
- [工学]第七章 浅基础设计.ppt
- [工学]第七章 一阶电路和二阶电路的时域分析output.ppt
- [工学]第七章 海洋化学资源.ppt
- [工学]第七章 计划的制订.ppt
- [工学]第七章 高聚物力学性能测试.ppt
- [工学]第七章 自洽场分子轨道理论.ppt
- [工学]第七章_欧氏空间.ppt
- [工学]第七讲VC++编程.ppt
- 向财政申请资金的请示报告.docx
- 基础建设项目风险评估报告复核意见.docx
- 2024高考历史一轮复习第1单元古代中国的政治制度第1讲夏商西周时期的政治制度和秦朝中央集权制度的形.doc
- 2024_2025学年高中英语Module2HighlightsofMySeniorYearSectionⅡGrammar练习外研版选修7.docx
- 2024_2025学年高中历史专题七俄国农奴制改革第1课危机笼罩下的俄国讲义人民版选修1.docx
- 2025届高考历史一轮复习课后限时集训14近代中国民族工业的兴起与民国时期民族工业的曲折发展人民版.doc
- 2024_2025学年高中历史专题2商鞅变法1“治世不一道便国不必法古”学案人民版选修1.doc
- 七年级数学下册第六章概率初步周周测16.1新版北师大版.doc
- 2024_2025学年高中英语Unit23ConflictLesson3WarMemories练习北师大版选修8.docx
- 2024_2025学年高中英语Unit2SailingtheoceansSectionⅡLearningaboutLanguage练习新人教版选修9.docx
最近下载
- lng接收站工艺培训计划.docx VIP
- 五懂五会五能员工必备安全技能手册.pdf
- 化妆品行业化妆品生产厂复工安全培训.pptx
- 2024年10月13日云南省税务系统遴选笔试真题及答案解析.doc VIP
- 2023年中考数学几何模型——动点最值之瓜豆模型(讲+练)(原卷版).pdf VIP
- (新统编版)语文四年级下册 第一单元集体备课指导 课件.pptx
- 四川省2023-2024学年 职教高考联合体第4次模拟考试-智能制造类应知+应会(含答案).pdf VIP
- 1危险化学品磷酸(正磷酸)的危险、有害特性表MSDS.docx
- 2《陈涉世家》精省公开课一等奖全国示范课微课金奖PPT课件.pptx
- 攀枝花学院2020-2021学年第1学期《高等数学(上)》期末考试试卷(A卷)及标准答案.pdf
文档评论(0)