Hexadecimal Codes
The standard ASCII table defines 128 character codes (from 0 to 127), of which, the first 32 are control codes (non-printable), and the remaining 96 character codes are representable characters:
* | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | C | D | E | F |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | NUL | SOH | STX | ETX | EOT | ENQ | ACK | BEL | BS | TAB | LF | VT | FF | CR | SO | SI |
1 | DLE | DC1 | DC2 | DC3 | DC4 | NAK | SYN | ETB | CAN | EM | SUB | ESC | FS | GS | RS | US |
2 | ! | " | # | $ | % | & | ' | ( | ) | * | + | , | - | . | / | |
3 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | : | ; | < | = | > | ? |
4 | @ | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O |
5 | P | Q | R | S | T | U | V | W | X | Y | Z | [ | \ | ] | ^ | _ |
6 | ` | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o |
7 | p | q | r | s | t | u | v | w | x | y | z | { | | | } | ~ |
* To read: example, the "A" character is located at the 4th row and the 1st column, for that it would be represented in hexadecimal as 0x41 (65).
Mnemonics used in above symbol are:
MNEMONIC | OCTAL | CHARACTER | MEANING |
---|---|---|---|
NUL | 0 | [CTRL]-@ | Null |
SOH | 1 | [CTRL]-A | Start of Heading |
STX | 2 | [CTRL]-B | Start of Text |
ETX | 3 | [CTRL]-C | End of Text |
EOT | 4 | [CTRL]-D | End of Transmission |
ENQ | 5 | [CTRL]-E | Enquiry |
ACK | 6 | [CTRL]-F | Acknowledge |
BEL | 7 | [CTRL]-G | Bell |
BS | 10 | [CTRL]-H | Backspace |
HT | 11 | [CTRL]-I | Horizontal Tabulation |
LF | 12 | [CTRL]-J | Line Feed |
VT | 13 | [CTRL]-K | Vertical Tabulation |
FF | 14 | [CTRL]-L | Form Feed |
CR | 15 | [CTRL]-M | Carriage Return |
SO | 16 | [CTRL]-N | Shift Out |
SI | 17 | [CTRL]-O | Shift In |
DLE | 20 | [CTRL]-P | Data Link Escape |
DC1 | 21 | [CTRL]-Q | Device Control 1 |
DC2 | 22 | [CTRL]-R | Device Control 2 |
DC3 | 23 | [CTRL]-S | Device Control 3 |
DC4 | 24 | [CTRL]-T | Device Control 4 |
NAK | 25 | [CTRL]-U | Negative Acknowledge |
SYN | 26 | [CTRL]-V | Synchronous Idle |
ETB | 27 | [CTRL]-W | End of Transmission Block |
CAN | 30 | [CTRL]-X | Cancel |
EM | 31 | [CTRL]-Y | End of Medium |
SUB | 32 | [CTRL]-Z | Substitute |
ESC | 33 | [CTRL]-[ | Escape |
FS | 34 | [CTRL]-\ | File Separator |
GS | 35 | [CTRL]-] | Group Separator |
RS | 36 | [CTRL]- | Record Separator |
US | 37 | [CTRL] | Unit Separator |
DEL | 177 | [DEL] | Delete |
The ANSI character set is a standard that many systems incorporate, like Windows, some UNIX platforms and many standalone applications. It includes many more local symbols and marked letters so that it can be used with no need of being redefined in many more languages: