ASCII

From Esolang
Jump to navigation Jump to search

ASCII is a special way of encoding characters, which was mainly used in the 1960s-1970s, and more recently it has been used in EsoLangs. ASCII stands for American Standard Code for Information Interchange. ASCII uses 8 binary digits (bits) to represent characters: 1000001 (65) represents the upper-case letter A; 1000010 represents B; 1000011 represents C; and so on in sequence.

Eight bits allowed a parity bit to be included in each byte sent over a serial port or modems, this bit is used for avoiding errors. This was more important years ago when connections were often noisy.

For esolangs, most of ASCII before 32 won't be relevant. The main pre-32 characters are NULL and new line.

Binary Decimal Character
0000000 0 NULL
0000001 1 Start of Heading
0000010 2 Start of Text
0000011 3 End of Text
0000100 4 End of Transmission
0000101 5 Enquiry
0000110 6 Acknowledgement
0000111 7 Bell
0001000 8 Backspace
0001001 9 Horizontal Tab
0001010 10 New Line
0001011 11 Vertical Tab
0001100 12 Form Feed
0001101 13 Carriage Return
0001110 14 Shift Out
0001111 15 Shift In
0010000 16 Data Link Escape
0010001 17 Device Control 1
0010010 18 Device Control 2
0010011 19 Device Control 3
0010100 20 Device Control 4
0010101 21 Negative Acknowledgement
0010110 22 Synchronous Idle
0010111 23 End of Transmission Block
0011000 24 Cancel
0011001 25 End of Medium
0011010 26 Substitute
0011011 27 Escape
0011100 28 File Separator
0011101 29 Group Separator
0011110 30 Record Separator
0011111 31 Unit Separator
00100000 32 Space
00100001 33 !
00100010 34 "
00100011 35 #
00100100 36 $
00100101 37 %
00100110 38 &
00100111 39 '
00101000 40 (
00101001 41 )
00101010 42 *
00101011 43 +
00101100 44 ,
00101101 45 -
00101110 46 .
00101111 47 /
00110000 48 0
00110001 49 1
00110010 50 2
00110011 51 3
00110100 52 4
00110101 53 5
00110110 54 6
00110111 55 7
00111000 56 8
00111001 57 9
00111010 58 :
00111011 59 ;
00111100 60 <
00111101 61 =
00111110 62 >
00111111 63 ?
01000000 64 @
01000001 65 A
01000010 66 B
01000011 67 C
01000100 68 D
01000101 69 E
01000110 70 F
01000111 71 G
01001000 72 H
01001001 73 I
01001010 74 J
01001011 75 K
01001100 76 L
01001101 77 M
01001110 78 N
01001111 79 O
01010000 80 P
01010001 81 Q
01010010 82 R
01010011 83 S
01010100 84 T
01010101 85 U
01010110 86 V
01010111 87 W
01011000 88 X
01011001 89 Y
01011010 90 Z
01011011 91 [
01011100 92 \
01011101 93 ]
01011110 94 ^
01011111 95 _
01100000 96 `
01100001 97 a
01100010 98 b
01100011 99 c
01100100 100 d
01100101 101 e
01100110 102 f
01100111 103 g
01101000 104 h
01101001 105 i
01101010 106 j
01101011 107 k
01101100 108 l
01101101 109 m
01101110 110 n
01101111 111 o
01110000 112 p
01110001 113 q
01110010 114 r
01110011 115 s
01110100 116 t
01110101 117 u
01110110 118 v
01110111 119 w
01111000 120 x
01111001 121 y
01111010 122 z
01111011 123 {
01111100 124 |
01111101 125 }
01111110 126 ~
01111111 127 Delete

See also