EasyManua.ls Logo

Commodore CBM - Operators; Reserved Words

Commodore CBM
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...
Reserved Words
PET BASIC
is
programmed to recognize certain words
as
requests for
specifie operations.
Names
that
are pegged
to
certain operations are called
"reserved words." You cannot use these words as variable names because
PET BASIC
will
always recognize the word
as
a request for the correspond-
ing
operation. Moreover, you cannot use a reserved word
as
any part of your
variable names; PET BASIC
will
still find
it
and
treat
it
as
a request for
an
operation,
A list of reserved words
is
given in Table 3-2.
PaV
particular attention
to
the
two-character reserved words. since these are the ones vou
would
be
most likelv
to duplicate in a variable name.
Table 3-2. Reserved
Words
ABS
GET
OPEN
SPC
AND
GET#
OR
SOR
ASC
GOSUB
PEEK
ST
ATN
GOTO
POKE
STEP
CHR$
IF
POS
STOP
CLOSE
INPUT
PRINT
STR$
CLR
INT
PRINT#
SYS
CMD
LEFT$
READ
TAB
CO
NT
LEN
READ#
TAN
COS
LET
REM
THEN
DATA
LIST
RESTO
RE
TI
DEF
LOAD
RETURN
TI$
DIM
LOG
RIGHT$
TO
END
MID$
RND
USR
EXP
NEW
RUN
VAL
FN
NEXT
SAVE
VERIFY
FOR
NOT
SGN
WAIT
FRE
ON
SIN
OPERATORS
An
operator
is
a special symbol that PET BASIC recognizes
as
repre-
senting
an
operation to be performed
on
the variables
or
constant data. One
or
more operators, combined
with
one
or
more terms, form
an
"expression,"
PET
BASIC provides arithmetic operators. relational operators. and Boolean
operators.
62

Table of Contents

Other manuals for Commodore CBM

Related product manuals