Original code inverse code complement of -00101

The inverse of the binary code -00101

68 binary is 01000100, the first is the sign number, the negative number is 1, so -68 original code: 11000100 negative number of the inverse of the original code sign number remains unchanged, the other bits of the inverse: 10111011 negative number of the complement of the inverse of the end of the code plus 1, so the complement of the code: 10111100

How to convert the original code of a number to its complement, inverse code

Category:Computer/Network

Analysis:

1011

Original: 01011

Inverse: 01011 positive, inverse = original

Complement: 01011 positive, complement = original

Shift: 11011 original + 10000

-1011

Original: 11011

Inverse: 10100 negative, the inverse is the inverse of the original

Complement: 10101 negative, complement is the inverse of the original code + 1

Shift: 00101 original + 10000

0.1101

Original code: 0.1101

Inverse code: 0.1101 positive, inverse code = original code

Complement: 0.1101 positive, complement = original code

Shift: 1.1101 original + 1

-0.1101

Original code: 1.1101

Original code: 1.1101

< p>Inverse code: 1.0010 negative, the inverse of the original code

Complement: 1.0011 negative, the complement is the inverse of the original code + 1

Shift code: 0.0010 original + 1

How to express the positive and negative of complementary code and inverse code respectively?

In eight-bit words

Original: positive 00000000

negative 10000000

Inverse: positive 00000000

negative 11111111

Complement: positive 00000000

negative 00000000

Shift: positive 10000000

Shift is the complement of the inverse of the sign bit. 10000000

Negative 10000000

Shift code is the complement of the inverse of the sign bit.

What is the decimal inverse? And what is the complement?

The original code of +1011 is 001011, the anticode is 010100, and the complement is 010101.

The original code of -1101 is 00010B, the anticode is 01101B, and the complement is 00010B.

The original code of -10101 is 10,000010B, the anticode is 11111101B, and the complement is 11111110B.