Summary
Trappable - Program
| No | Error | No | Error |
|---|---|---|---|
| 1 | Out of range | 2 | * |
| 3 | * | 4 | Mistake |
| 5 | Missing , | 6 | Type mismatch |
| 7 | No FN | 8 | * |
| 9 | Missing ” | 10 | Bad DIM |
| 11 | DIM space | 12 | Not LOCAL |
| 13 | No PROC | 14 | Array |
| 15 | Subscript | 16 | Syntax error |
| 17 | Escape | 18 | Division by zero |
| 19 | String too long | 20 | Too big |
| 21 | -ve root | 22 | Log range |
| 23 | Accuracy lost | 24 | Exp range |
| 25 | * | 26 | No such variable |
| 27 | Missing ) | 28 | Bad HEX |
| 29 | No such FN/PROC | 30 | Bad call |
| 31 | Arguments | 32 | No FOR |
| 33 | Can’t match FOR | 34 | FOR variable |
| 35 | * | 36 | No TO |
| 37 | * | 38 | No GOSUB |
| 39 | ON syntax | 40 | ON range |
| 41 | No such line | 42 | Out of DATA |
| 43 | No REPEAT | 44 | * |
| 45 | Missing # |
* Not applicable to BBC BASIC(Z80)
Trappable - Operating System
| No | Error | |
| 192 | Too many open files | |
| 220 | Bad syntax | |
| 222 | Channel | |
| 252 | File Access errors | Reported as one of the following: |
| Already exists | ||
| Bad filename | ||
| End of file | ||
| File Not found | ||
| File type mismatch | ||
| In use | ||
| Read Protected | ||
| Suspended | ||
| Write protected | ||
| 253 | Sorry, not implemented | |
| 254 | Bad command |
Untrappable - Error Code 0
| No room | RENUMBER space |
| Silly | LINE space |
| Sorry | Bad program |
| Failed at nnn |
Strictly speaking ‘Bad program’ does not have an error code. It leaves ERR and ERL unchanged.
Last updated on