Fortune Telling Collection - Ziwei fortune-telling - There are () (decimal) bytes in a section of memory from BH to 9ABH. There are () (decimal) bytes in a section of memory from BH to 9ABH.

There are () (decimal) bytes in a section of memory from BH to 9ABH. There are () (decimal) bytes in a section of memory from BH to 9ABH.

The answer is wrong. The correct answer should be 2464.

9ABH-BH=9A0H,9× 16? + 10× 16? +0× 16 =2464

For example:

There are two ways to calculate the storage space from the start address and the end address:

One is to use hexadecimal calculation: the last address-start address+1, and then convert it into decimal number. Namely: 9abh-5abh+1= 400h+1= 4 *162 =1025;

Second, it is converted into decimal calculation: 9abh-5abh+1= 9 *162+10 *16+1-5 *162+/kloc-.

Extended data:

When decimal number is converted into binary number, the integer part and decimal part of decimal number are converted separately and then merged because of the different conversion methods.

Decimal integers are converted into binary integers. The decimal integer is converted into a binary integer by the method of "dividing by 2 to get the remainder and arranging in reverse order". The specific method is: divide the decimal integer by 2 to get a quotient and remainder; If you divide the quotient by 2, you will get a quotient and a remainder, and so on until the quotient is zero. Then the remainder obtained first is used as the low-order significant bit of the binary number, and the remainder obtained later is used as the high-order significant bit of the binary number, which are arranged in turn.

Baidu encyclopedia-decimal system