EasyManua.ls Logo

Commodore Plus 4 - Page 89

Commodore Plus 4
464 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...
BASIC
Version
3.5
Commands,
Functions,
and
System
Variables
77
70
RESTORE
Resets
the
data
pointer
to
begin
ning
of
line
10.
80
READ
A
Reads
first
DATA
item
in
line
10.
RUNT
Line
80
reads
a
text
value
for
a
?TYPE
MISMATCH
ERROR
IN
80
numeric
variable.
REM
Abbr.
none
REM
remarks
Contains
comments
explaining
program
lines.
REMarks
make
the
program
easier
to
understand
when
any
user
reads
the
program
lines.
If
your
program
is
longer
than
just
a
few
lines,
you
should
include
REMarks
so
your
program
is
well
documented.
Because
REM
statements
are
ignored
by
the
computer,
they
can
contain
anything.
Parameter:
remark
The
remark
does
not
need
to
be
enclosed
in
quotation
marks.
Note:
In
most
BASIC
lines,
shifted
characters
are
allowed
only
for
abbrevia
tions
or
in
quotes.
In
a
REM
statement,
shifted
characters
are
fine
until
the
program
is
LISTed.
The
computer
treats
a
shifted
character
as
a
BASIC
token
and
prints,
not
the
character,
but
the
BASIC
keyword
it
corresponds
to
(see
Appendix
B
for
a
token
list).
This
is
very
annoying.
If
you
want
shifted
characters
in
a
REMark,
put
them
inside
quotes
to
avoid
this
problem.
Example:
10
REM
PRINT
A
GREETING
WITH
THE
USER'S
NAME
SO
INPUT
"WHAT'S
YOUR
NAME";
N$
30
PRINT
"HELLO,
";
N$;
",
WHAT'S
NEW?"
RENAME
Abbr.
reN
RENAME
Ddrive,
old
file
name
TO
new
file
name,
ON
Uunit
Replaces
the
name
of
a
disk
file.
The
file
itself
is
not
affected.
Parameters:
D
drive
number,
"old
name"
TO
"new
name",
U
unit
number
1.
Give
the
number
of
the
drive
containing
the
disk
whose
file
you
want
to
rename.
Drive
numbers
are
either
0
or
1;
no
other
numbers
are
allowed.
The
default
value
is
0.
This
parameter
is
optional.
If
you
are
using
a
single
drive,
leave
out
the
drive
number.
2.
Always
list
the
file's
current
name
first.
Be
sure
to
put
it
in
quotes.
3.
TO
is
part
of
the
RENAME
command
and
must
be
included.
4.
Enclose
in
quotes
the
new
name
you
want
to
give
the
file.
5.
U
unit
number
is
an
optional
parameter.
Use
it
only
if
you
have
more
than

Other manuals for Commodore Plus 4

Related product manuals