Capítulo 7. Para su referencia
Parte 4: Caracteres ASCII y caracteres gráficos en BASIC
Contenido:
ASCII
En la tabla siguiente se da la relación de los códigos y caracteres ASCII. Los números están en decimal, octal y hexadecimal. En las siguientes páginas se ilustra el diseño de los caracteres generados por el CPC6128.
DEC | OCTAL | HEX | ASCII |
---|---|---|---|
0 | 000 | 00 | NUL ([CTRL] @) |
1 | 001 | 01 | SOH ([CTRL] A) |
2 | 002 | 02 | STX ([CTRL] B) |
3 | 003 | 03 | ETX ([CTRL] C) |
4 | 004 | 04 | EOT ([CTRL] D) |
5 | 005 | 05 | ENQ ([CTRL] E) |
6 | 006 | 06 | ACK ([CTRL] F) |
7 | 007 | 07 | BRL ([CTRL] G) |
8 | 010 | 08 | BS ([CTRL] H) |
9 | 011 | 09 | HT ([CTRL] I) |
10 | 012 | 0A | LF ([CTRL] J) |
11 | 013 | 0B | VT ([CTRL] K) |
12 | 014 | 0C | FF ([CTRL] L) |
13 | 015 | 0D | CR ([CTRL] M) |
14 | 016 | 0E | SO ([CTRL] N) |
15 | 017 | 0F | SI ([CTRL] O) |
16 | 020 | 10 | DLE ([CTRL] P) |
17 | 021 | 11 | DC1 ([CTRL] Q) |
18 | 022 | 12 | DC2 ([CTRL] R) |
19 | 023 | 13 | DC3 ([CTRL] S) |
20 | 024 | 14 | DC4 ([CTRL] T) |
21 | 025 | 15 | NAK ([CTRL] U) |
22 | 026 | 16 | SYN ([CTRL] V) |
23 | 027 | 17 | ETB ([CTRL] W) |
24 | 030 | 18 | CAN ([CTRL] X) |
25 | 031 | 19 | EM ([CTRL] Y) |
26 | 032 | 1A | SUB ([CTRL] Z) |
27 | 033 | 1B | ESC ([CTRL] [) |
28 | 034 | 1C | FS ([CTRL] \) |
29 | 035 | 1D | GS ([CTRL] ]) |
30 | 036 | 1E | RS ([CTRL] ↑) |
31 | 037 | 1F | US ([CTRL] 0) |
32 | 040 | 20 | SP |
33 | 041 | 21 | ! |
34 | 042 | 22 | " |
35 | 043 | 23 | # |
36 | 044 | 24 | $ |
37 | 045 | 25 | % |
38 | 046 | 26 | & |
39 | 047 | 27 | ' |
40 | 050 | 28 | ( |
41 | 051 | 29 | ) |
42 | 052 | 2A | * |
43 | 053 | 2B | + |
44 | 054 | 2C | , |
45 | 055 | 2D | - |
46 | 056 | 2E | . |
47 | 057 | 2F | / |
48 | 060 | 30 | 0 |
49 | 061 | 31 | 1 |
50 | 062 | 32 | 2 |
51 | 063 | 33 | 3 |
52 | 064 | 34 | 4 |
53 | 065 | 35 | 5 |
54 | 066 | 36 | 6 |
55 | 067 | 37 | 7 |
56 | 070 | 38 | 8 |
57 | 071 | 39 | 9 |
58 | 072 | 3A | : |
59 | 073 | 3B | ; |
60 | 074 | 3C | < |
61 | 075 | 3D | = |
62 | 076 | 3E | > |
63 | 077 | 3F | ? |
64 | 100 | 40 | @ |
65 | 101 | 41 | A |
66 | 102 | 42 | B |
67 | 103 | 43 | C |
68 | 104 | 44 | D |
69 | 105 | 45 | E |
70 | 106 | 46 | F |
71 | 107 | 47 | G |
72 | 110 | 48 | H |
73 | 111 | 49 | I |
74 | 112 | 4A | J |
75 | 113 | 4B | K |
76 | 114 | 4C | L |
77 | 115 | 4D | M |
78 | 116 | 4E | N |
79 | 117 | 4F | O |
80 | 120 | 50 | P |
81 | 121 | 51 | Q |
82 | 122 | 52 | R |
83 | 123 | 53 | S |
84 | 124 | 54 | T |
85 | 125 | 55 | U |
86 | 126 | 56 | V |
87 | 127 | 57 | W |
88 | 130 | 58 | X |
89 | 131 | 59 | Y |
90 | 132 | 5A | Z |
91 | 133 | 5B | [ |
92 | 134 | 5C | \ |
93 | 135 | 5D | ] |
94 | 136 | 5E | ↑ |
95 | 137 | 5F | _ |
96 | 140 | 60 | ` |
97 | 141 | 61 | a |
98 | 142 | 62 | b |
99 | 143 | 63 | c |
100 | 144 | 64 | d |
101 | 145 | 65 | e |
102 | 146 | 66 | f |
103 | 147 | 67 | g |
104 | 150 | 68 | h |
105 | 151 | 69 | i |
106 | 152 | 6A | j |
107 | 153 | 6B | k |
108 | 154 | 6C | l |
109 | 155 | 6D | m |
110 | 156 | 6E | n |
111 | 157 | 6F | o |
112 | 160 | 70 | p |
113 | 161 | 71 | q |
114 | 162 | 72 | r |
115 | 163 | 73 | s |
116 | 164 | 74 | t |
117 | 165 | 75 | u |
118 | 166 | 76 | v |
119 | 167 | 77 | w |
120 | 170 | 78 | x |
121 | 171 | 79 | y |
122 | 172 | 7A | z |
123 | 173 | 7B | { |
124 | 174 | 7C | | |
125 | 175 | 7D | } |
126 | 176 | 7E | ~ |
Conjunto de caracteres gráficos específicos de la máquina
Los caracteres aquí reproducidos están representados en la matriz estándar de 8x8 en la que se basa la visualización de texto en la pantalla del CPC6128. Los caracteres definidos por el usuario pueden ser agrupados para conseguir efectos especiales. Véase la sección Caracteres definidos por el usuariocaracteres-definidos-por-el-usuario) en el capítulo Cuando usted guste.
32 &H20 &X00100000 | |||
33 &H21 &X00100001 | 34 &H22 &X00100010 | 35 &H23 &X00100011 | 36 &H24 &X00100100 |
37 &H25 &X00100101 | 38 &H26 &X00100110 | 39 &H27 &X00100111 | 40 &H28 &X00101000 |
41 &H29 &X00101001 | 42 &H2A &X00101010 | 43 &H2B &X00101011 | 44 &H2C &X00101100 |
45 &H2D &X00101101 | 46 &H2E &X00101110 | 47 &H2F &X00101111 | 48 &H30 &X00110000 |
49 &H31 &X00110001 | 50 &H32 &X00110010 | 51 &H33 &X00110011 | 52 &H34 &X00110100 |
53 &H35 &X00110101 | 54 &H36 &X00110110 | 55 &H37 &X00110111 | 56 &H38 &X00111000 |
57 &H39 &X00111001 | 58 &H3A &X00111010 | 59 &H3B &X00111011 | 60 &H3C &X00111100 |
61 &H3D &X00111101 | 62 &H3E &X00111110 | 63 &H3F &X00111111 | 64 &H40 &X01000000 |
65 &H41 &X01000001 | 66 &H42 &X01000010 | 67 &H43 &X01000011 | 68 &H44 &X01000100 |
69 &H45 &X01000101 | 70 &H46 &X01000110 | 71 &H47 &X01000111 | 72 &H48 &X01001000 |
73 &H49 &X01001001 | 74 &H4A &X01001010 | 75 &H4B &X01001011 | 76 &H4C &X01001100 |
77 &H4D &X01001101 | 78 &H4E &X01001110 | 79 &H4F &X01001111 | 80 &H50 &X01010000 |
81 &H51 &X01010001 | 82 &H52 &X01010010 | 83 &H53 &X01010011 | 84 &H54 &X01010100 |
85 &H55 &X01010101 | 86 &H56 &X01010110 | 87 &H57 &X01010111 | 88 &H58 &X01011000 |
89 &H59 &X01011001 | 90 &H5A &X01011010 | 91 &H5B &X01011011 | 92 &H5C &X01011100 |
93 &H5D &X01011101 | 94 &H5E &X01011110 | 95 &H5F &X01011111 | 96 &H60 &X01100000 |
97 &H61 &X01100001 | 98 &H62 &X01100010 | 99 &H63 &X01100011 | 100 &H64 &X01100100 |
101 &H65 &X01100101 | 102 &H66 &X01100110 | 103 &H67 &X01100111 | 104 &H68 &X01101000 |
105 &H69 &X01101001 | 106 &H6A &X01101010 | 107 &H6B &X01101011 | 108 &H6C &X01101100 |
109 &H6D &X01101101 | 110 &H6E &X01101110 | 111 &H6F &X01101111 | 112 &H70 &X01110000 |
113 &H71 &X01110001 | 114 &H72 &X01110010 | 115 &H73 &X01110011 | 116 &H74 &X01110100 |
117 &H75 &X01110101 | 118 &H76 &X01110110 | 119 &H77 &X01110111 | 120 &H78 &X01111000 |
121 &H79 &X01111001 | 122 &H7A &X01111010 | 123 &H7B &X01111011 | 124 &H7C &X01111100 |
125 &H7D &X01111101 | 126 &H7E &X01111110 | 127 &H7F &X01111111 | 128 &H80 &X10000000 |
129 &H81 &X10000001 | 130 &H82 &X10000010 | 131 &H83 &X10000011 | 132 &H84 &X10000100 |
133 &H85 &X10000101 | 134 &H86 &X10000110 | 135 &H87 &X10000111 | 136 &H88 &X10001000 |
137 &H89 &X10001001 | 138 &H8A &X10001010 | 139 &H8B &X10001011 | 140 &H8C &X10001100 |
141 &H8D &X10001101 | 142 &H8E &X10001110 | 143 &H8F &X10001111 | 144 &H90 &X10010000 |
145 &H91 &X10010001 | 146 &H92 &X10010010 | 147 &H93 &X10010011 | 148 &H94 &X10010100 |
149 &H95 &X10010101 | 150 &H96 &X10010110 | 151 &H97 &X10010111 | 152 &H98 &X10011000 |
153 &H99 &X10011001 | 154 &H9A &X10011010 | 155 &H9B &X10011011 | 156 &H9C &X10011100 |
157 &H9D &X10011101 | 158 &H9E &X10011110 | 159 &H9F &X10011111 | 160 &HA0 &X10100000 |
161 &HA1 &X10100001 | 162 &HA2 &X10100010 | 163 &HA3 &X10100011 | 164 &HA4 &X10100100 |
165 &HA5 &X10100101 | 166 &HA6 &X10100110 | 167 &HA7 &X10100111 | 168 &HA8 &X10101000 |
169 &HA9 &X10101001 | 170 &HAA &X10101010 | 171 &HAB &X10101011 | 172 &HAC &X10101100 |
173 &HAD &X10101101 | 174 &HAE &X10101110 | 175 &HAF &X10101111 | 176 &HB0 &X10110000 |
177 &HB1 &X10110001 | 178 &HB2 &X10110010 | 179 &HB3 &X10110011 | 180 &HB4 &X10110100 |
181 &HB5 &X10110101 | 182 &HB6 &X10110110 | 183 &HB7 &X10110111 | 184 &HB8 &X10111000 |
185 &HB9 &X10111001 | 186 &HBA &X10111010 | 187 &HBB &X10111011 | 188 &HBC &X10111100 |
189 &HBD &X10111101 | 190 &HBE &X10111110 | 191 &HBF &X10111111 | 192 &HC0 &X11000000 |
193 &HC1 &X11000001 | 194 &HC2 &X11000010 | 195 &HC3 &X11000011 | 196 &HC4 &X11000100 |
197 &HC5 &X11000101 | 198 &HC6 &X11000110 | 199 &HC7 &X11000111 | 200 &HC8 &X11001000 |
201 &HC9 &X11001001 | 202 &HCA &X11001010 | 203 &HCB &X11001011 | 204 &HCC &X11001100 |
205 &HCD &X11001101 | 206 &HCE &X11001110 | 207 &HCF &X11001111 | 208 &HD0 &X11010000 |
209 &HD1 &X11010001 | 210 &HD2 &X11010010 | 211 &HD3 &X11010011 | 212 &HD4 &X11010100 |
213 &HD5 &X11010101 | 214 &HD6 &X11010110 | 215 &HD7 &X11010111 | 216 &HD8 &X11011000 |
217 &HD9 &X11011001 | 218 &HDA &X11011010 | 219 &HDB &X11011011 | 220 &HDC &X11011100 |
221 &HDD &X11011101 | 222 &HDE &X11011110 | 223 &HDF &X11011111 | 224 &HE0 &X11100000 |
225 &HE1 &X11100001 | 226 &HE2 &X11100010 | 227 &HE3 &X11100011 | 228 &HE4 &X11100100 |
229 &HE5 &X11100101 | 230 &HE6 &X11100110 | 231 &HE7 &X11100111 | 232 &HE8 &X11101000 |
233 &HE9 &X11101001 | 234 &HEA &X11101010 | 235 &HEB &X11101011 | 236 &HEC &X11101100 |
237 &HED &X11101101 | 238 &HEE &X11101110 | 239 &HEF &X11101111 | 240 &HF0 &X11110000 |
241 &HF1 &X11110001 | 242 &HF2 &X11110010 | 243 &HF3 &X11110011 | 244 &HF4 &X11110100 |
245 &HF5 &X11110101 | 246 &HF6 &X11110110 | 247 &HF7 &X11110111 | 248 &HF8 &X11111000 |
249 &HF9 &X11111001 | 250 &HFA &X11111010 | 251 &HFB &X11111011 | 252 &HFC &X11111100 |
253 &HFD &X11111101 | 254 &HFE &X11111110 | 255 &HFF &X11111111 |