Commodore 2001-8 User Manual page 116

Table of Contents

Advertisement

INPUT A
?ILLEGAL DIRECT ERROR
READY.
Illegal quantity··Occurs when a function is accessed with a p,arameter out of range. This error may be
caused by;
1. A matrix subscript out of range
0<
X
~
32767
X(-1)=Y
?ILLEGAL QUANTITY ERROR
2. LOG
(negative or zero argument)
3. SQR (negative argument)
4. A
l'
B where A
=
0 and 8 not
int~ger.
?( - 5f
is illegal because it would give a complex result.
5. Call of USR before machine language subroutine has been patched in.
6. Use of string functions MID$, LEFT$, RIGHT$, with length parameters out of
range(1< X
<
255).
7. Index on ....GOTO out of range.
8. addresses specified for PEEK, POKE, WAIT and SYS out of range.
(0 < X <65535).
9. Byte parameters of WAIT, POKE, TAB and SPC out of range
(0<
X<255).
POKE 32768,1000
?ILLEGAL QUANTITY ERROR
READY.
Next without for··Either a NEXT is improperly nested or the variable in a NEXT statement corresponds to
no previously executed FOR statement.
FOR 1=1 TO 'O:NEXT:NEXT
?NEXT WITHOUT FOR ERROR
READY.
FOR 1=1 TO 10:NEXT
J
?NEXT WITHOUT FOR ERROR
READY.
OUT OF DATA--A READ statement was executed but all of the data statements in the program have been
read. The program tried to read too much data, or insufficient
OUT OF DATA··A READ statement was executed but all of the data statements in the program have been
nt data, was included in the program. Carriage
OUT OF DATA--A READ statement was executed but all of the data statements in the program have been
read. The program tried to read too much data, or insufficient data, was included in the program. Carriage
returning through a line READY on the PET TV display, sometimes yields this error because the message
is interpreted as READ Y.
READY.
?OUT OF DATA ERROR
READY.
OUT OF MEMORY··May appear while entering or editing a program as the text completely fills memory.
At run time, assignment and creation of variables may also fill all variable memory. Array available
declarations consume large areas of memory even though a program may be rather short. The maximum
number of FOR loops and simUltaneous GOSUBs are dependent on each other. This context is stored on
the 6502 hardware stack whose capacity may be exceeded. To determine the type of memory error, print
FRE (0). If there are a large number of bytes variables, it is most likely a FOR·NEXT or GOSut:3 problem.
115

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pet 2001-8

Table of Contents