Binary MSB is the sign bit, wherein a positive number represents 0, 1 for negative;
Positive complement of the inverted original code is the same;
Negative sign bit inverted negative change, the remaining bit is inverted (i.e. 0,0 1 variant 1 variant);
Negative is the inverted complement plus 1;
For example: a computer word length is eight, so the clock, and
Shoichi basis Hara 码: 0000 0001
Anti-code: 0000 0001
Complement: 0000 0001
(Are the same)
A negative original code: 1000 0001 (1 represents the most significant bit is negative)
Anti-Code: 1111 1110 (MSB sign bits unchanged, the remaining inverted)
Complement: 1111 1111 (plus one inverted)