BBC Error Messages ================== Error numbers < 128 (ie, b7=0) are language errors. Error numers > 127 (ie b7=1) are non-language (ie MOS, filing system, utility, etc.) errors. As BASIC's errors are all <64, any error numbers used with a program for its own purposes should be 64-127. 6502 BASIC ARM BASIC Windows BASIC ---------------------------------------------------------------------------------------- 00 0 No room No room No room 01 1 Out of range No such mnemonic Jump out of range No such suffix 02 2 Byte Bad immediate constant Size needed Bad address offset Bad shift register 03 3 Index Duplicate register in multiply Multiple label 04 4 Mistake Mistake Mistake Missing = Missing = in FOR statement 05 5 Missing , Missing , Missing , 06 6 Type mismatch Type mismatch: number needed Type mismatch Type mismatch: string needed Type mismatch: array needed Can't assign to array of this size Can't SWAP different types 07 7 No FN Not in a function Not in a function 08 8 $ range Too low a value for $ Address out of range 09 9 Missing " Missing " Missing " 0A 10 Bad DIM Bad DIM statement Bad DIM statement Impossible dimension DIM() function needs an array No room to do matrix multiplication No end of dimension list Can't DIM negative amount Arrays cannot be redimensioned 0B 11 DIM space No room for this DIM DIM space No room for this dimension 0C 12 Not LOCAL Not in a FN or PROC Items can only be made local in a function or procedure 0D 13 No PROC Not in a procedure Not in a procedure 0E 14 Array Unknown array Bad use of array Unknown array in DIM() function Undimensioned array 0F 15 Subscript Subscript out of range Bad subscript Incorrect number of subscripts 10 16 Syntax error Syntax error Syntax error 11 17 Escape Escape Escape 12 18 Division by zero Division by zero Division by zero 13 19 String too long String too long String too long 14 20 Too big Number too big Number too big Number too big for Sine or Cosine 15 21 -ve root Negative root Negative root 16 22 Log range Logarithm range Logarithm error 17 23 Accurancy lost Accuracy lost in Sine/Cosine/Tangent Accuracy lost 18 24 Exp range Exponent range Exponent range 19 25 Bad MODE Bad MODE 1A 26 No such variable Unknown variable or missing variable No such variable Can't use array reference here 1B 27 Missing ) Missing ) Missing ) Missing ( Missing ] Missing { Missing } 1C 28 Bad HEX Bad Hex Bad hex or binary Hex number too large Bad binary 1D 29 No such FN/PROC No such function/procedure No such FN/PROC 1E 30 Bad call Bad call of function/procedure Bad call 1F 31 Arguments Arguments to function/procedure incorrect Incorrect arguments Invalid RETURN actual parameter Invalid array actual parameter 20 32 No FOR Not in a FOR loop Not in a FOR loop 21 33 Can't match FOR Can't match FOR Can't match FOR 22 34 FOR variable Bad FOR control variable Bad FOR variable 23 35 Too many FORs The step cannot be zero STEP cannot be zero 24 36 No TO Missing TO Missing TO 25 37 Too many GOSUBs No room for function/procedure call Missing OF 26 38 No GOSUB Not in a subroutine Not in a subroutine 27 39 ON syntax ON syntax ON syntax 28 40 ON range ON range ON range 29 41 No such line No such line No such line 2A 42 Out of DATA Out of data Out of data 2B 43 No REPEAT Not in a REPEAT loop Not in a REPEAT loop 2C 44 Too many REPEATs Too many nested structures WHEN/OTHERWISE not first 2D 45 Missing # Missing # Missing # 2E 46 Not in a WHILE loop Not in a WHILE loop 2F 47 Missing ENDCASE Missing ENDCASE 30 48 OF missing from CASE statememt OF not last CASE OF statement must be the last thing on a line 31 49 Missing ENDIF Missing ENDIF 32 50 Bad MOUSE variable Bad MOUSE variable 33 51 Too many input expressions for SYS No such system call Too many output variables for SYS 34 52 Can't install library Bad library Bad program used as function/procedure library No room for library 35 53 Size mismatch 36 54 DATA not LOCAL 37 55 Missing \ 38 56 Bad use of structure 39 57 3A 58 3B 59 3C 60 3D 61 3E 62 3F 63 40 64 41 65 : : 7E 126 7F 127 Graphics Extension ROM: SRAM Utils: 80 128 No sprite memory Bad id 81 129 Not a graphics mode 82 130 No room to get sprite 83 131 No Sprites 84 132 85 133 Can't open file Not enough room 86 134 Sprite doesn't exist 87 135 Missing comma IEEEFS: 88 136 Sprite numbers are equal Out of range 89 137 Bad number No device talked 8A 138 No device listened 8B 139 No BBC DEVICE NO 8C 140 CLEAR not executed 8D 141 String too long CoProFS: 8D 141 Buffer in use 8E 142 No buffer 8F 143 No 80186 90 144 Bad Tube configuration No Tube present 91 145 92 146 93 147 I cannot run this code Won't Door open (VFS) 94 148 Bad compact Bad params (ADFS) Bad parameter (ANFS) 95 149 IRQ already indirected Vector already claimed 96 150 Can't delete CSD 97 151 Can't delete LIB Can't delete Library 98 152 Compaction required 99 153 Map full 9A 154 9B 155 9C 156 9D 157 Illegal operation (TFS) 9E 158 9F 159 A0 160 Line jammed A1 161 Net error A2 162 Station xxx not listening Can't delete URD A3 163 No clock No clock - Check network connector A4 164 Station xxx not present Bad TxCB A5 165 No reply from station xxx No reply A6 166 Printer busy A7 167 Printer jammed A8 168 FS Error XX Is a directory Broken directory A9 169 Too long (PSERV) Bad free space map Bad FS map No directory (ADFS) AA 170 Wrong printer (PSERV) Bad printer type (PSERV) Bad sum (ADFS) Bad net checksum AB 171 Printer off line AC 172 Bad user name AD 173 Mode x Sizes don't match Bad MODE (VFS) Turn interlace on (VFS) AE 174 Not logged on Same disk Types don't match (Filestore) AF 175 Types don't match B0 176 Bad rename Circular rename Rename across disks B1 177 Already a user B2 178 PW file full No room in memory B3 179 Directory full Dir. full B4 180 Directory not empty Dir. not empty Dir. is linked B5 181 XXXX is not a file Is a directory Is a dir. B6 182 Map fault (Filestore) B7 183 Outside file B8 184 Too many users B9 185 Bad password BA 186 Insufficient privilege BB 187 Wrong password BC 188 User not known Execute only BD 189 Insufficient access Not enabled Access violation File execute only BE 190 XXXX is not a directory Catalogue full Cat full Directory full BF 191 Who are you? Can't extend C0 192 Too many files open Too many open files Can't save file No room for more channels C0 192 No more FCBs No room for MCP Too many open All channels already in use C1 193 Not open for update File read only Read only Can't open for update C2 194 Already open File open Can't - file open Already open at station xxx C3 195 Entry locked File locked C4 196 File exists Already exists Exists C5 197 Bad disk parameters Disk Fault Drive fault C5 197 Cannot recalibrate Disk not formatted Winchester error C6 198 Disk full Length too long CP memory full RAMDisk full C6 198 Account bankrupt C7 199 Bad Sector Disk Read Error Sector error C7 199 Clock error Disk Write Error Sector not found C7 199 CRC error in data Floppy Fault Track 0 not found C7 199 CRC error in ID ID Field CRC Error Unformatted C7 199 Data Field CRC Error Incompatible Winchester Error C7 199 Disc error Late DMA Write fault C7 199 Disc fault RAMDisc corruption C7 199 Disk Clock error Ramdisc error C8 200 Disk changed Not an HADFS disk Too small Close error C9 201 Disk read only Write protected Disc protected Disc write protected CA 202 Bad checksum Data lost, channel xxx Device fault CB 203 Bad option Bad opt CC 204 Bad filename Bad name CD 205 Bad drive Drive not ready Drive door open CE 206 Bad directory Bad dir Unsupported directory CF 207 Bad attribute CFS errors: D0 208 Bad station number Ambiguous filename D1 209 Bad net number Illegal character D2 210 Drive ? not present D3 211 [Drive empty] D4 212 Write only [Disk not found] D5 213 Locked [Disk not present] D6 214 File not found Not found XXXX not found Can't open file D7 215 Bad ROM D8 216 Data? D9 217 Header? DA 218 Block? DB 219 File? Not a text file Not a file DC 220 Syntax Syntax Syntax DD 221 Disk density mismatch DE 222 Channel Channel not open Net channel Not on this file server DF 223 EOF End of file CoProFS: E0 224 Transfer error E1 225 E2 226 E3 227 E4 228 E5 229 E6 230 E7 231 E8 232 E9 233 EA 234 Telesoftware error EB 235 EC 236 ED 237 EE 238 EF 239 MOS errors: F0 240 Undefined instruction F1 241 Abort on instruction fetch F2 242 Abort on data transfer F3 243 Address exception F4 244 Unknown IRQ F5 245 Branch through zero F6 246 F7 247 OS x.yz Bad event MOS x.yz F8 248 Bad filing system name No filing system Bad filing system ID F9 249 Language? No language ROM Duplicate filing system ID F9 249 No BASIC Not in BASIC F9 249 No Not in F9 249 Unknown version of BASIC F9 249 Unknown version of FA 250 Key in use FB 251 Bad key FC 252 Bad address Bad number FD 253 Bad string Wildcards FE 254 Bad command Bad command Bad command FF 255 Bad Unknown error Bad OSWORD 00 0 This is not a language 00 0 I cannot run this code 80186 Tube client: FF 255 Cannot boot DOS - ADFS not present FF 255 Cannot boot DOS - boot file not found FF 255 Not 80186 code Not a language Pandora: 100 256 File not found 101 257 Can't use OS_PRIV from user mode TK_privilege called from user 102 258 Can't use OS_PRIV on OS_PRIV Attempt to modify privilege of TK_privilege 103 259 Can't use OS_PRIV on unknown SVC Unknown SVC reference by TK_privilege 104 260 LOAD/RUN disabled Illegal load attempt by TK_OSCLI 105 261 Illegal event number illegal event number 106 262 Not a 32016 image 11B 283 Escape [incorrect] 1FE 510 End of file [incorrect] 1FF 511 Key timeout [incorrect] CUBE: FF 255 No BASIC ROM No BASIC?