A brief explanation of the original binary computer code, anti-code complement

The concept of the original code, complement, anti-code

Positive original code: positive absolute value of the original code is a binary number of revolutions, the original code 00000000 00000000 5 is 0,000,000,000,000,101

Negative original code: negative absolute value of the original code is the number of binary turn, and then the sign bit (MSB) plus one, the original code is -5 1,000,000,000,000,000 0,000,000,000,000,101 

Positive anti-code: Positive anti-code the same as the original code.

Inverted negative: negative inverted, the number of the original code except the sign bit, inverted. -5 inverted for the 1,111,111,111,111,111 1,111,111,111,111,010

Complement positive number: the number of the same original code.

Negative complement: Yes negative complement its original code in addition to the sign bit (MSB) each bit negated, then add 1 to the lowest level, that is, negative complement. -5 complement code is 1,111,111,111,111,111 1,111,111,111,111,011

 

induction:

Positive anti-code complement are the same as the original code.

Negative absolute value of the original code is the number of binary turn, and then the sign bit (MSB) plus anti-code for a negative number in addition to the original code symbol bit inversion, negative anti-code complement plus 1 for .

Negative binary number is the negative complement

 

Guess you like

Origin www.cnblogs.com/weixiao1717/p/11571829.html