Hexadecimal is a base 16 numbering system associated with memory and other addresses in a computer. The hexadecimal numbering system consists of the following 16 numbers and letters: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, and A, B, C, D, E, and F. The letter A represents a decimal equivalent of 10, B = 11, C = 12, D = 13, E = 14, and F = 15. Hexadecimal numbers use an h suffix to identify the address as a hexadecimal number—for example, 10h. Hexadecimal is easier to read because it is based on groups of four bits (known as nybbles), unlike binary, which uses groups of eight bits.
Table 18.2 displays decimal, binary, and hexadecimal equivalents.
Decimal | Binary | Hexadecimal |
---|---|---|
0 | 0000 | 0 |
1 | 0001 | 1 |
2 | 0010 | 2 |
3 | 0011 | 3 |
4 | 0100 | 4 |
5 | 0101 | 5 |
6 | 0110 | 6 |
7 | 0111 | 7 |
8 | 1000 | 8 |
9 | 1001 | 9 |
10 | 1011 | B |
12 | 1100 | C |
13 | 1101 | D |
14 | 1110 | E |
15 | 1111 | F |