Commodore PET Character Codes
updated March 7, 2025
These character codes are the values returned from BASIC's ASC function with the exception of DEL.
The key's character or function can be reproduced using BASIC's CHR$ function with the exception of STOP.
SHIFT keys do not have a code. I could not determine if RUN has a code.
|
|
|
161 33 | 162 34 | 163 35 | 164 36 | 165 37 | 167 39 | 166 38 | 220 92 | 168 40 | 169 41 | 223 95 | 209 81 | 215 87 | 197 69 | 210 82 | 212 84 | 217 89 | 213 85 | 201 73 | 207 79 | 208 80 | 255 94 | 193 65 | 211 83 | 196 68 | 198 70 | 199 71 | 200 72 | 202 74 | 203 75 | 204 76 | 186 58 | 13 | 218 90 | 216 88 | 195 67 | 214 86 | 194 66 | 206 78 | 205 77 | 172 44 | 187 59 | 191 63 | | 146 18 | 192 64 | 219 91 | 221 93 | 160 32 | 188 60 | 190 62 | 3 | |
|
|
147 19 | 145 17 | 157 29 | 148 20 | 183 55 | 184 56 | 185 57 | 175 47 | 180 52 | 181 53 | 182 54 | 170 42 | 177 49 | 178 50 | 179 51 | 171 43 | 176 48 | 174 46 | 173 45 | 189 61 |
|