EasyManua.ls Logo

Commodore Plus 4 - Page 73

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
61
Give
the
coordinates
of
the
point
on
the
graphic
screen
where
you
want
the
pixel
cursor
to
be
moved.
The
next
drawing
will
use
this
point
as
its
starting
point
unless
the
drawing
command
gives
some
other
starting
point.
For
more
informa
tion,
see
Chapter
4.
Example:
10
GRAPHIC
4,1
20
LOCATE
30,
25
Puts
the
pixel
cursor
at
column
30,
row
25.
30
DRAW
TO
60,50
Draws
a
line
from
the
current
pixel-cursor
location
to
column
60,
row
50.
LOG
Abbr.
none
LOG
(number)
Finds
the
natural
logarithm
of
a
number.
LOG
returns
the
log
base
e
(e
=
the
mathematical
constant,
approximately
2.71828183)
of
the
number
in
paren
theses.
Divide
by
LOG(IO)
to
get
the
log
base
10.
For
more
information,
see
the
Mathematical
Calculations
section
of
Chapter
3.
Parameter:
any
numeric
expression
with
a
positive
value
Examples:
PRINT
L0G(2)
Prints
the
natural
logarithm
of
2.
.693147181
PRINT
L0G(2)/L0G(10)
Prints
the
logarithm
base
10
of
2.
.301029996
LOOP
Abbr.
loO
Works
with
DO
to
set
conditions
for
a
repeated
sequence
of
program
lines.
See
DO.
MID$
Abbr.
ml
MID$
(string,
start
position,
length)
Gets
a
substring
of
the
specified
length
within
a
master
text
string.
MID$
starts
the
substring
at
the
character
position
specified.
MID$
can
also
be
used
to
change
part
of
a
text
string.
Parameters:
master
string,
starting
position,
number
of
characters
to
use
1.
The
master
string
can
be
any
text
string,
text-string
variable,
or
string
expression.
2.
The
substring
is
begun
at
the
starting
position;
characters
that
come
before
the
starting
position
are
not
used.
The
starting
position
can
be
any
character
position
in
the
master
string.
If
it
is
greater
than
the
length
of
the
master
string,
a
null
string
is
returned.

Other manuals for Commodore Plus 4

Related product manuals