补码反码(Complement complement).doc

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

补码反码(Complement complement) The original code, complement, complement Numbers are expressed in binary form in a computer. Numbers are divided into signed and unsigned numbers. The original code, complement, complement is a symbol of fixed-point representation. The highest bit of a signed point is the symbol bit, 0 is positive, and 1 is a pair. Here are 8 bit integers, The original code is the number of binary form. for example 0000001 is +1 1000001 is -1 The positive and negative complement are the same and the original code. negative In a computer, a negative number is expressed in the complement of its positive value. What is called complement? This is from the original code, one speaks. Source: an integer in absolute size is converted to a binary number, called the original code. For example, 0000000000000000 of the original 0000000000000101 is 5. Complement: the binary number by bit reverse, the new binary number known as the original binary code. Take counter operation means: originally 1, get 0; originally 0, get 1. (1 change 0, 0 change 1) For example: take 0000000000000000, 0000000000000101, each for 1111111111111111, 1111111111111010. Said: 1111111111111111 1111111111111010 0000000000000000 0000000000000101s complement. Complement each other, so it can be called: 1111111111111111 1111111111111010 and 0000000000000000 0000000000000101 mutual complement is the complement of the source outside except the sign bit you reverse [-3] anti = anti Complement negative is the source outside except the sign bit you reverse after last plus 1. [-3] complement, =, complement, A number and its complement are reversible. Why do we have to establish twos complement? The first is to allow the computer to perform subtraction: [a-b] complement, =a complement + (-b) complement The second reason is to unify the positive 0 and the negative 0 Positive Zero:Negative zero:The two number is 0, but they have different represen

您可能关注的文档

文档评论(0)

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

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

版权声明书
用户编号:6111134150000003

1亿VIP精品文档

相关文档