EasyManua.ls Logo

Commodore PET - Program 7, INDIAN BLANKET

Commodore PET
447 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Error Message
ILLEGAL
DIRECT
ILLEGAL OUANTITY
NEXT
WITHOUT
FOR
OUT
OF
DATA
Cause and Suggested Remedies
A command was given in immediate (direct)
mode that
is
valid only in program mode. The
following are invalid in immediate mode:
DATA.
DEF
FN.
GET.
GET#. INPUT. INPUT#.
Enter the desired operation
as
a (short) pro-
gram and
RUN
it.
A
function
is
passed
one
or
more
parameters
that
are
out
of range. This
message also occurs if the
USR
function
is
referenced before storing the subroutine ad-
dress at memory locations 1 and
2.
Check the ranges given in Chapter 4 for the
function in question. Change the program to
be
sure that the argument
will
always
be
with-
in range. or add a check before the
fu
netion
reference to make sure that the argument
is
allowed. If
USR
error. insert statements to
POKE
the subroutine address before the
USR
reference.
A
NEXT
statement
is
encountered that
is
not tied to a preceding
FOR
statement. Either
there
is
no
FOR
statement or the variable in
the NEXT statement
is
not in a corresponding
FOR
statement.
The
FOR
part of a
FOR
...
NEXT
loop must
be
inserted or the offending
NEXT
statement
deleted.
Be
sure that the index variables are
the same at both ends of the loop.
A
READ
statement
is
executed
but
ail of the
DATA statements in the program have already
been
read.
For each variable in a
READ
state-
ment. there must
be
a corresponding DATA
element.
Add more DATA elements or restrict the
number of
READs
to the current number of
DATA elements. Insert a
RESTORE
statement
to reread the existing data. Or add a flag at the
end of the last DATA statement (any value not
used
as
a DATA element may
be
used for the
flag value) and stop READing when the flag
has
been
read.
363

Table of Contents

Related product manuals