## Error codes

Number | Code | Explanation
--- | --- | ---
1 | NF | NEXT without FOR. Usually occurs when NEXT statements are reversed in a nested loop.
2 | SN | Syntax Error. Usually caused by typing errors or incorrect punctuation.
3 | RG | RETURN without GOSUB. Program has most likely fallen through the end of the routine, (use END) or a branch has been made into the subroutine.
4 | OD | Out of Data. A READ statement has read all the DATA statements.
5 | FC | Illegal Function Call. Usually parameter is out of range or the wrong variable type.
6 | OV | Overflow. The number is too large for the computer to handle.
7 | OM | Out of Memory. All available memory is being used or has been reserved.
8 | UL | Undefined Line. A branching statement has been directed to a line that does not exist.
9 | BS | Bad Subscript. Usually because the value of subscript is greater than the declared dimension of the array.
10 | DD | Attempt to redimension an array. Arrays can only be dimensioned once in a program.
11 | /0 | Division by zero. Not possible.
12 | ID | Illegal Direct Statement. Attempt to use a statement which can only be used in a program e.g. INPUT.
13 | TM | Type Mismatch. Attempt to assign string data to numeric variable or vice versa.
14 | OS | Out of String Space. Use CLEAR to create more space if available.
15 | LS | String too long. Maximum is 255 characters.
16 | ST | String formula too complex. Break the operation into smaller steps.
17 | CN | Can't Continue. Trying to use CONT when at END of a program.
18 | UF | Undefined User Function.
19 | NR | No RESUME. The RESUME instruction is required if an ON ERROR GOTO is located in the program.
20 | RE | RESUME Without Error.
21 | EC | ERROR with illegal error code argument.
22 | MO | Missing Operand
23 | FN | For Without Next.
50 | NU | Not In Use.
51 | FM | Bad File Mode. Trying to INPUT from a file which is OPEN for output (O), or PRINT data to a file OPEN for input (I).
52 | AO | Attempt to open a file which is already open. Usually appears after pressing STOP to stop a program using files.
53 | IO | Input/Output Error. Cassette not adjusted correctly or bad tape.
54 | IE | Input Past End. Attempt to input past the end of a file. Use EOF function to check this does not happen.
55 | FD | Bad File Descriptor.
56 | DS | Direct Statement. Usually appears if you attempt to LOAD a data file.
57 | NO | File Not Open. Input and output to a data file can only take place after OPEN.
58 | BD | Bad Data. Caused by trying to read string data into numeric variable.
59 | IU | Device In Use.
60 | DU | Device Unavailable.
61 | PP | Protected Program.