Symbolic data representation
Within the computer, there are 3 notation numbers: The original code, the inverse code, and the complement. All data is performed in the complement.
The original code: is the binary fixed-point notation, that is, the highest bit is the sign bit, "0" is positive, "1" is negative, the remaining bits represent the size of the value.
Anti-code: The inverse code of positive number is the same as its original code, and the inverse code of negative number is the inverse of its original code, except the sign bit.
Complement: The complement of a positive number is the same as its original code; the complement of a negative number is the minus 1 of its inverse code.
Practice of symbolic data representation
A: It is known that a number of X's original code is 10110100B, try to find X's complement and anti-code.
Sign bit value bit
Original code: 1 0110100
Anti-code : 1 1001011
Complement: 1 1001100
B: A number of X's complement 11101110B is known, try to find its original code.
Sign bit value bit
Complement: 1 1101110
Anti-code : 1 1101101
Original code: 1 0010010
2.11 Original Code anti-code complement