EasyManua.ls Logo

Commodore Plus 4 - Correcting typing mistakes

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.S
Commands,
Functions,
and
System
Variables
48
130
PAINT,
160,100
140
CHAR,2,2,
"YOU
HAVE
DRAWN
A
"+S$
145
REM USE
D£LAY LOOP
TO
PROLONG
SHAPE
DISPLAY
150
FOR
Y
=
1
TO
300:
NEXT
Y
155
REM
SWITCH
BACK
TO
TEXT
MODE
160
GRAPHIC
0,1
165
REM
END
OF SUBROUTINE
170
RETURN
GOTO
or
GO
TO
GOTO
line
number
Abbr.
gO
Tells
the
computer
to
branch
to
another
line
and
continue
execution
there.
You
can
also
use
GOTO
in
immediate
mode
to
jump
into
a
program
and
begin
executing
it.
The
difference
between
executing
a
program
with
a
RUN
command
and
an
immediate
mode
GOTO
is
that
the
RUN
command
clears
all
variables
before
executing
the
program,
and
GOTO
does
not.
Parameter:
line
number
GOTO
can
send
execution
to
a
later
or
earlier
line
in
the
program.
When
GOTO
sends
the
program
back
to
a
previously
executed
line,
an
infinite
loop
results
unless
you
also
include
a
statement
or
mechanism
such
as
a
counter
to
end
the
loop.
Examples:
10
INPTJT"WHAT'S
YOUR
NAME";
N$
20
GOTO
10
NEW
10
INPUT
"WANT
TO
REPEAT";
N$
SO
IP
LEFT$(N$,1)
=
"N"
THEN
END
30
GOTO
10
GRAPHIC
GRAPHIC
mode,
clear
GRAPHICCLR
GOTO
sends
the
program
back
to
line
10
each
time
line
20
is
executed;
this
causes
an
infinite
loop.
GOTO
sends
the
program
back
to
line
10
unless
you
answer
N
to
the
INPUT
ques
tion.
Typing
N
ends
the
loop.
Abbr.
gR
Switches
to
one
of
the
four
graphic
drawing
modes,
or
from
a
graphic
drawing
mode
to
the
text
modes.
You
can
also
clear
the
screen
or
the
bit-mapped
memory
area
that
is
set
aside
for
graphics
when
you
enter
one
of
the
graphic
drawing
modes.

Other manuals for Commodore Plus 4

Related product manuals