(base 16) (or just "hex" as most people say). These assemblers do the conversions for you.
Hexadecimal probably seems a little hard to grasp at first, but like most things, it won't take long to master with practice.
By looking at decimal (base 10) numbers, you can see that each digit fails somewhere in the range between zero and a number equal to the base less one (e.g., 9). THIS IS TRUE OF ALL NUMBER BASES. Binary (base 2) numbers have digits ranging from zero to one (which is one less than the base). Similarly, hexadecimal numbers should have digits ranging from zero to fifteen, but we do not have any single digit figures for the numbers ten to fifteen, so the first six letters of the alphabet are used instead:
DECIMAL | HEXADECIMAL | BINARY |
---|---|---|
0 | 0 | 00000000 |
1 | 1 | 00000001 |
2 | 2 | 00000010 |
3 | 3 | 00000011 |
4 | 4 | 00000100 |
5 | 5 | 00000101 |
6 | 6 | 00000110 |
7 | 7 | 00000111 |
8 | 8 | 00001000 |
9 | 9 | 00001001 |
10 | A | 00001010 |
11 | B | 00001011 |
12 | C | 00001100 |
13 | D | 00001101 |
14 | E | 00001110 |
15 | F | 00001111 |
16 | 10 | 00010000 |
This page has been created by Sami Rautiainen. | |
Read the small print. | Last updated July 10, 2002. |