EasyManua.ls Logo

Commodore Plus 4 - Page 103

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.8
Commands,
Functions,
and
System
Variables
91
STEP
Abbr.
stE
Tells
the
computer
how
much
to
add
to
the
counter
variable
in
a
FOR.
. .
TO
. .
.
NEXT
loop.
See
FOR
.
.
.
NEXT.
STOP
Abbr.sT
Suspends
the
execution
of
the
current
BASIC
program
and
sends
the
com
puter
to
immediate
mode
so
you
can
debug.
Any
OPEN
files
stay
OPEN
after
a
STOP,
and
variables
retain
the
values
they
had
when
the
program
was
interrupted.
When
STOP
executes,
the
computer
displays
the
message
BREAK
IN
LINE
line
number,
just
as
if
you
pressed
the
STOP
key.
You
can
use
the
CONT
command
to
restart
the
program
at
the
line
following
the
STOP
command
as
long
as
you
follow
the
CONT
restrictions:
do
not
make
program
changes.
You
can
also
use
GOTO
to
restart
the
program.
Type
GOTO
and
the
line
number
where
you
want
to
resume.
Use
END
when
you
do
not
want
the
BREAK
message.
STR$
Abbr.stR
STR$
(number)
Translates
the
number
in
parentheses
to
a
text
string.
If
the
number
is
negative,
a
minus
sign
precedes
it
in
the
string.
A
leading
blank
space
is
generated
if
the
number
is
positive.
A
trailing
blank
space
is
not
generated
in
either
case.
Example:
10
X
=
67:
Y
=
-2S.4
SO
X$
=
STR$(X)
30
Y$
=
STR$(Y)
40
PRI1JTX$;Y$
RUN
67-22.4
SYS
Abbr.sY
SYS
memory
location
Executes
a
machine-language
program
at
the
memory
location
named,
which
can
be
anywhere
in
RAM
or
ROM.
For
more
information,
see
Chapter
5.
You
can
put
a
SYS
command
in
a
BASIC
program
to
combine
the
BASIC
program
with
a
machine-language
program.
If
you
do
this,
the
machine-language
program
is
considered
a subroutine,
and
you
must
end
the
machine-language
program
with
an
RTS
(return
from
subroutine)
instruction.
This
RTS
instruction
sends
program
control
back
to
the
BASIC
program
line
that
follows
the
SYS
command.

Other manuals for Commodore Plus 4

Related product manuals