- 1、本文档共41页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
二进制编码概要
Exercise before class: 1、If 1810=000100102 , Write the 8-bit two’s-complement representation for the decimal number: -1810=( )2 2、Write the signed-magnitude, two’s-complement, and ones’-complement representations for each of these decimal numbers,use the bits as least: +115, -49. 3、If 100111012 is the 2’s complement representation,what is its decimal representation? 4、 Write the 8-bit signed-magnitude, two’s-complement, and ones’-complement representations for the decimal numbers: -24 10 1、已知:1810=000100102 求其相反数的补码表示: -1810=( )2 2、用最少位数写出-4910的二进制原码、补码、反码表示。1110001,1001111,1001110 3、已知:100111012是某个数的补码表示,问其用十进制的表达为? -99 4、分别以符号-数值数制、反码、补码将-24表示为一个8位数11100111 Review of last class Operations for unsigned numbers(Addition, Multiplication, subtraction) Representation of Negative Numbers Signed-Magnitude Representation MSB as the Sign bit (0 = plus, 1 = minus) Zero? n-bit range ? When A=B,A-B=? Complement Number Systems radix – Complement, Diminished Radix – Complement r’s complement= r n –D= (r n -1–D)+1 MSB (the sign bit) ,Weight of the MSB?, range of representable numbers ? Sign extension Signed-Magnitude system ?Two’s-complement number system? Sum up for the Complement (总结) 1.Positive number has the same: Sign-Magnitude, Ones’ – Complement, and Two’s- Complement ( 正数的原码、反码、补码相同) 2. MSB (the sign bit) : 1 =minus; 0=plus Weight of the MSB: -2n-1 2.6 Two’s – Complement Addition and Subtraction (二进制补码的加法和减法) we define [x] to be the two’s complement representation of x [x + y] = ( [x] + [y] ) [x - y] = ( [x] + [-y] ) 4 bits binary number 0000,0001,0010,0011, 0100, 0101, 0110, 0111, 1000, 1001, 1010,1011, 1100, 1101, 1110, 1111, We can added +n to that number by counting up n times, that is, b
文档评论(0)