二进制编码选编.ppt

  1. 1、本文档共41页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
二进制编码选编

Exercise before class :;1、已知:1810=000100102 求其相反数的补码表示: -1810=( )2 2、用最少位数写出-4910的二进制原码、补码、反码表示。1110001,1001111,1001110 3、已知:100111012是某个数的补码表示,问其用十进制的表达为? -99 4、分别以符号-数值数制、反码、补码将-24表示为一个8位数11100111;Review of last class;Sum up for the Complement (总结);Sum up for the Complement (总结);2.6 Two’s – Complement Addition and Subtraction (二进制补码的加法和减法);4 bits binary number;0000;0000;0000; ;What is most interesting is that we can also subtract n (or add -n) by moving the arrow 16 - n positions clockwise. Notice that the quantity 16 - n is what we defined to be the 4-bit two’s complement of n, that is, the two’s-complement representation of -n. (P41); -5 1011 +7 0111 + -6 + 1010 + +3 +0011; 2.6.3 Overflow(溢出)(P41) 如果加法运算产生的和超出了数制表示的范围,则结果发生了溢出(Overflow)。 对于二进制补码,加数的符号相同,和的符号与加数的符号不同。(C in 与 C out 不同) 对于无符号二进制数,若最高有效位上发生进位或借位,就指示结果超出范围。 -5 1011 + -6 + 1010 -11 10101 = +5 +7 0111 + +3 + 0011 +10 1010 = -6 ; 2.6.3 Overflow(溢出)(P41) 如果加法运算产生的和超出了数制表示的范围,则结果发生了溢出(Overflow)。 Addition of two numbers with different signs can never produce overflow, but addition of two numbers of like sign can . An addition overflows if the signs of the addends’ signs are the same but the sum’s sign is different from the addends’ sign. ;2.6.3 the rule for detecting overflow (溢出的判断规则)(P41) ; EXAMPLES OF OVERFLOW;Code(编码);Code(编码) A set of n-bit strings in which different bit strings represent different numbers or other things is called a code. (代表某数或事物的一组n位二进制码。) three data units:(3种数据单位) bit byte word ;Byte and Word Length;a decimal number is represented in a digital system by a string of bits, where different combinations of bit- values in the string represent different decimal numbers. 在数字系统(Digital System)中用位串(Bit

文档评论(0)

jiayou10 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:8133070117000003

1亿VIP精品文档

相关文档