Home > other >  Radix-minus-one complement converted to complement
Radix-minus-one complement converted to complement

Time:09-28

Radix-minus-one complement of complement is what ah 11111111 great god come and tell me why me    thank you

CodePudding user response:

Original code refers to the use of binary code decimal and highest level as the sign bit, 0 means is positive, one negative, but was only such a calculation, because of the positive and negative zero, 0 had two original code not count, so have a radix-minus-one complement and complement, the original code for a positive number is the complement and complement (at least for assembly language) and negative radix-minus-one complement the sign bit is the same the rest each take the bitwise (such as the eight bit binary in the original code is 10000001-1, then the radix-minus-one complement of 11111110), and negative complement is in addition to the sign bit after you press the bit invert plus one (for integer), and at the end of the above said eight binary complement is 0 is the source-code is 10000000, 00000000 and negative zero radix-minus-one complement is 11111111, complement is 0000000 (highest carry for beyond said give), which makes only one zero complement,

CodePudding user response:

reference 1st floor weixin_44626112 response:
the original code refers to using a binary code decimal and highest level as the sign bit, 0 means is positive and one negative, but was only such a calculation, because of the positive and negative zero, 0 had two bad original code count, so have a radix-minus-one complement and complement, the original code for a positive number is the complement and complement (at least for assembly language) and negative radix-minus-one complement the sign bit is the same the rest each take the bitwise (such as the eight bit binary of the original code is 10000001-1, then the radix-minus-one complement of 11111110), and negative complement is in addition to the sign bit after you press the bit invert plus one (for integer), and at the end of the above said eight binary complement is 0 is the source-code is 10000000, 00000000 and negative zero radix-minus-one complement is 11111111, complement is 0000000 (highest carry for beyond said give up), which makes 0 only one's complement,

Oh, see but I have a question, whether the sign bit to participate in the calculation
  • Related