The Complete STOS Reference

 pre-release 0.2 Edited By Dr Phibes

APPENDIX A: ERROR MESSAGES

 #0-29  #30-59  #60-87

Alphabetical Listing

0 Not Done 
1 Bad File Format 
2 Out Of Memory 
3 This Line Does Not Exist 
4 This Line Already Exists 
5 Search Failed 
6 Line Too Long 
7 Can't Continue 
8 Out Of Memory 
9 Follow Too Long 
10 Printer Not Ready 
11 Can't Renum 
12 Syntax Error 
13 Illegal Function Call 
14 Illegal Direct Mode 
15 Direct Command Used 
16 In/Out Error 
17 Break 
18 Non Declared Array 
19 Type Mismatch 
20 ??? 
21 Overflow Error 
22 For Without Next 
23 Next Without For 
24 While Without Wend 
25 Wend Without While 
26 Repeat Without Until 
27 Until Without Repeat 
28 Array Already Dimensioned 
29 Undefined Line Number
30 String Too Long 
31 Bus Error 
32 Address Error 
33 No Data On This Line Restore 
34 No More Data 
35 Too Many Gosubs 
36 Return Without Gosub 
37 Pop Without Gosub 
38 Resume Without Error A Resume 
39 User Function Not Defined 
40 Illegal User-Function Call 
41 Memory Bank Already Reserved 
42 Memory Bank Not Defined As Screen 
43 Bad Screen Address 
44 Memory Bank Not Reserved 
45 Resolution Not Allowed 
46 Division By Zero 
47 Illegal Negative Operand 
48 File Not Found 
49 Drive Not Ready 
50 Disc Is Write Protected 
51 Disc Full 
52 Disc Error 
53 Bad Filename 
54 Bad Time 
55 Bad Date 
56 Sprite Error 
57 Movement Declaration Error 
58 Animation Declaration Error 
59 File Not Open
60 File Type Mismatch 
61 Input String Too Long 
62 File Already Open 
63 File Already Closed 
64 End Of File 
65 Input String Too Long 
66 Field Too Long 
67 Flash Declaration Error 
68 Window Parameter Out Of Range 
69 Window Already Opened 
70 Window Not Opened 
71 Window Too Small 
72 Window Too Large 
73 Character Set Not Defined 
74 No More Text Buffer Space 
75 Music Not Defined 
76 System Window Called 
77 System Character Set Called 
78 Character Set Not Found 
79 Menu Not Defined 
80 Bank 15 Already Reserved 
81 Bank 15 Is Reserved For Menus 
82 Illegal Instruction 
83 Drive Not Connected 
84 Extension Not Present 
85 Subscript Out Of Range 
86 Scrolling Not Defined See Def Scroll. 
87 String Is Not A Screen Block

Alphabetical Order

32 ADDRESS ERROR

An odd or invalid address has been accessed using the peek and poke commands.

58 ANIMATION DECLARATION ERROR

The ANIM string command has not been properly set.

28 ARRAY ALREADY DIMENSIONED

Array re-dimensioned at the error line.

55 BAD DATE

Attempt to set date with illegal values for the DATE$ function.

1 BAD FILE FORMAT

A file to be loaded cannot be recognised because it is not of the correct format.

53 BAD FILENAME

A filename has been used in an input/output procedure which is not legal. An example of this would be LOAD"".

43 BAD SCREEN ADDRESS

The address must be on a 256 byte boundary.

54 BAD TIME

An attempt has been made to set the time with an illegal value.

80 BANK 15 ALREADY RESERVED

This bank is already reserved and must be erased before it can be re-allocated for another purpose.

81 BANK 15 IS RESERVED FOR MENUS

You cannot use this bank at the moment as it has been reserved for use with menus in the current program.

17 BREAK

You have pressed [control+c]

31 BUS ERROR

An internal error has occurred, possibly due to incorrect addressing using the peek and poke commands.

7 CAN'T CONTINUE

A line has been altered, clearing all the variables to 0.

11 CAN'T RENUM

Renumbering the program would result in a conflict of line numbers.

73 CHARACTER SET NOT DEFINED

You have tried to access a character set which does not exist.

78 CHARACTER SET NOT FOUND

As above.

15 DIRECT COMMAND USED

A command which is only available in direct mode has been used within a program.

52 DISC ERROR

Unknown disc error. Make sure drive is connected properly and that the command was legal.

51 DISC FULL

50 DISC IS WRITE PROTECTED

Remove write protection.

46 DIVISION BY ZERO

A number has been divided by zero.

83 DRIVE NOT CONNECTED

Check leads and power connections.

49 DRIVE NOT READY 64 END OF FILE

The end of a file on a disc has been reached.

84 EXTENSION NOT PRESENT

This occurs when you try to run a program which incorporates a new STOS basic command without loading the relevant extension first.

66 FIELD TOO LONG

The size of a record created with FIELD has exceeded 65535 bytes or else more than 16 FIELDs have been used.

63 FILE ALREADY CLOSED

attempt to close a file already closed.

62 FILE ALREADY OPEN

attempt to open a file already opened.

48 FILE NOT FOUND

File not on the current disc.

59 FILE NOT OPEN

You must OPEN a file before attempting a read or write.

60 FILE TYPE MISMATCH

A file command has been used which does not correspond with the correct filing system. The error would occur when you try and use the GET and PUT statements on a sequential file.

67 FLASH DECLARATION ERROR

The FLASH command has been called incorrectly.

9 FOLLOW TOO LONG

STOS has been told to trace too many parameters.

22 FOR WITHOUT NEXT

A FOR command does not have it's mandatory NEXT instruction listed later in the program.

14 ILLEGAL DIRECT MODE

A command input in direct mode is not recognised.

13 ILLEGAL FUNCTION CALL

Attempt to use a function with an illegal parameter.

82 ILLEGAL INSTRUCTION

When STOS is running a machine code program this error will occur if it finds that the code is invalid.

47 ILLEGAL NEGATIVE OPERAND

Some functions cannot process negative numbers.

40 ILLEGAL USER-FUNCTION CALL

List of parameters does not match those defined

16 IN/OUT ERROR

An error has occurred during an i/o function.

61 INPUT STRING TOO LONG

An incoming string is too long for a dimensioned variable. Or an attempt has been made to INPUT # a line longer than 500.

65 INPUT STRING TOO LONG

As above.

6 LINE TOO LONG

A line must not be longer than 700 characters.

41 MEMORY BANK ALREADY RESERVED

Attempt has been made to reserve a memory bank already in use.

42 MEMORY BANK NOT DEFINED AS SCREEN

A command has accessed a memory bank which must be reserved as screen and thus cannot find the information required

44 MEMORY BANK NOT RESERVED

A memory bank has been accessed that is not reserved for any use.

79 MENU NOT DEFINED

The MENU ON command has been called but no menu has been set up.

57 MOVEMENT DECLARATION ERROR

The MOVE instruction has been set up incorrectly

75 MUSIC NOT DEFINED There isn't a tune in memory.

23 NEXT WITHOUT FOR

33 NO DATA ON THIS LINE RESTORE

points to a line that contains no DATA.

34 NO MORE DATA

Attempt to READ past the end of DATA available.

74 NO MORE TEXT BUFFER SPACE

If you open 10 windows the size of a full screen in mode 1 or 2 then the space reserved for the data in each window gets used up and causes this error.

18 NON DECLARED ARRAY

An array has been referenced that has not been defined.

0 NOT DONE

A procedure has been attempted and aborted.

2 OUT OF MEMORY

Take out excess accessories etc. to free more memory.

8 OUT OF MEMORY

As above.

21 OVERFLOW ERROR

A calculation has exceeded the size of a variable.

37 POP WITHOUT GOSUB

The pop instruction cannot be used outside a subroutine.

10 PRINTER NOT READY The printer is not on line.

26 REPEAT WITHOUT UNTIL

45 RESOLUTION NOT ALLOWED

This occurs on Hi-Res monitors when the MODE command is used or on colour monitors when you try to enter high resolution.

38 RESUME WITHOUT ERROR A RESUME

Command can only be executed after an error.

36 RETURN WITHOUT GOSUB

86 SCROLLING NOT DEFINED

See DEF SCROLL.

5 SEARCH FAILED

No trace can be found of a string searched for with the SEARCH command in the current program.

56 SPRITE ERROR

Parameters have been set for a SPRITE command which do not fall within the required limits.

87 STRING IS NOT A SCREEN BLOCK

A string has been used in the SCREEN$ command which has not been designed as a sprite block string.

30 STRING TOO LONG

A string has exceeded 65000 characters.

85 SUBSCRIPT OUT OF RANGE

A subscript greater than the defined maximum has been accessed.

12 SYNTAX ERROR

The grammar of a line is not correct.

77 SYSTEM CHARACTER SET CALLED

You have attempted to replace the system character set with a custom character set.

76 SYSTEM WINDOW CALLED

The system windows have been used in one of the No. ERROR NAME WINDOW commands. These windows are 0,14 and 15.

4 THIS LINE ALREADY EXISTS

The AUTO function reports an error when it comes across a line which is already in the program.

3 THIS LINE DOES NOT EXIST

This error occurs when an attempt is made to delete a non existant line number.

35 TOO MANY GOSUBS

STOS cannot store any more return addresses.

19 TYPE MISMATCH

An illegal value has been assigned to a variable.

29 UNDEFINED LINE NUMBER

This error will happen when an attempt is made to transfer program flow to a line number that does not exist.

27 UNTIL WITHOUT REPEAT

39 USER FUNCTION NOT DEFINED

Set up function using DEF FN.

25 WEND WITHOUT WHILE

24 WHILE WITHOUT WEND

69 WINDOW ALREADY OPENED

Attempt to OPEN an open window.

70 WINDOW NOT OPENED

You have referenced a window that does not exist.

68 WINDOW PARAMETER OUT OF RANGE

One of the windows parameters is not valid and it must be set to a legal value.

72 WINDOW TOO LARGE

A window cannot be opened because it is too big.

71 WINDOW TOO SMALL

The minimum window size is 3X3 characters.