- 1、本文档共20页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 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
您可能关注的文档
- 七年级下册语文题第二单元(Grade seven Chinese second unit).doc
- 七年级语文上册 第1课《为你打开一扇门》同步练习 苏教版(Grade seven Chinese census first class open a door for you synchronous exercises Jiangsu).doc
- 七年级语文上册 第三单元同步练习 语文版(Grade seven Chinese census of third synchronized exercises Chinese version).doc
- 七年级语文上册 第六单元检测卷(一) 人教新课标版(Grade seven Chinese census unit sixth detection volume (a) taught the new curriculum version).doc
- 万古汇力以先锋姿态企业培训专注ehr(The power to pioneer attitude training focus on EHR).doc
- 万斯同《明史稿》(Wan Sitong Ming history).doc
- 万用表检测元器件(Multimeter to detect components).doc
- 七年级语文上册《帮你学作文》第六单元试题(无答案)人教新课标版(Grade seven Chinese census to help you learn the composition sixth unit test (no answer) taught the new curriculum version).doc
- 万峰经典语录升级版(Wan Feng classic quotations upgraded version).doc
- 万科企业股份有限公司(Vanke enterprise Limited by Share Ltd).doc
文档评论(0)