Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - What do the low eight bits and the high eight bits mean in integer data?
What do the low eight bits and the high eight bits mean in integer data?
One unit in the memory is 16 bytes, and one bit represents a 1 or 0;

Integer of type int 65535;

The binary system is 16 1, as follows:

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

From the back to the front, the eight bits occupied by the first eight 1 belong to the lower eight bits, and the eight bits occupied by the last eight 1 belong to the upper eight bits.

Single-chip microcomputer uses 4-digit hexadecimal, such as A8E6H.

The corresponding binary values of 16 are 10 10, 1000,1/kloc-0, 0/kloc-0.

Obviously, the upper 8-bit binary value is 10 10, 1000B.

The low-order 8-bit binary value is110,01/0b.

The hexadecimal numbers reduced to two digits are:

The upper 8-bit binary value is A8H.

The low 8-bit binary value is E6H.