EasyManua.ls Logo

Commodore 16 - Page 63

Commodore 16
84 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
PROGRAMMING
A
program
features
lines
of
commands,
but
each
line
has
a
number.
The
number
tells
the
computer
in
what
order
to
read
the
program,
lowest
being read
first,
such
as
this:
10
PRINT
"ANYTHING"
Nothing
seems
to
happen
when
you
press
N
.
The
line
is
entered
in
the
computer,
but
it
doesn't
do
anything.
You
need
to
tell
it
to
execute
(or
RUN)
the
program^Youjjo
this
by
typing
RUN
and
pressing
the
itfTURN
key.
Then
the
computer
goes
through
each
line
in
order
and
carries out
what
each
line
tells
it
to
do.
Basic
3.5
Keywords
The
keywords
in
BASIC
3.5
may
be
divided
into
three
types:
COMMANDS
STATEMENTS
FUNCTIONS
Commands
are
keywords
that
are
most
often
used
in
direct
communication
(with
no
line
numbers).
An
example
of
a
command
keyword
is
LOAD.
Statements
are
keywords
that
usually
appear
in
numbered
program
lines.
PRINT
is
a
statement
keyword.
Functions
(as
shown
in
the
Numbers
review)
can
be
used
in
either
fashion.
Instead
of
carrying
out
a
com
mand,
the
computer
returns
numbers
or
letters.
43

Other manuals for Commodore 16

Related product manuals