EasyManuals Logo

Atari 800 User Manual

Atari 800
326 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #127 background imageLoading...
Page #127 background image
Atari BASIC Reference
Guide
125
the
subroutine
at
line
200
is
executed.
If
X
=3
,
the
subroutine
at
line
300
is
executed.
If
X = 4, the
subroutine
at
line
400
is
executed.
If
X = 0
or
X
is
greater than 4,
the
next
line
is
executed.
GOlO
The
GOTO
statement causes the
program
to
proceed
at
the
indicated
line
number.
CONFIGURA
TlON
GOTO
LN
EXAMPLE
10
X = X + 1
20
IF
X
/\
2>50
THEN END
30
PRINT
X;
40
GOTO
10
RUN
1234567
The previous
example
demonstrates the use
of
GOTO
. Line
10
increases
the
value
of
X by 1. Line
20
ends
the
program
when
X
squared
is
greater than
50
.
When
line
40
is
executed,
the
program
returns
to
line
10
. This
program
repeats lines
10
through
40
until
the
program
is
ended
or
branched
out
of
the
loop.
The
program
ends
when
X = 8 because 8 squared
is
greater than
50.
GOTO
is
also used
with
an
ON
statement
to
branch
a
program
to
one
of
several line
s.
CONFIGURATION
ON
EX
GOTO
LN
[,LNj [,LNj ...
The expression after
the
ON
statement indicates
which
line
number
the
program
proceeds to. This
is
called
the
control
expression. The
control
is
evaluated and
rounded
off
.
If
the
value
is
negative
or
greater
than
255,
an
error
occurs.
If
the
value
of
the
control
is
1, the
program
continues
at
the
first
line
number

Other manuals for Atari 800

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Atari 800 and is the answer not in the manual?

Atari 800 Specifications

General IconGeneral
ProcessorMOS Technology 6502
Processor Speed1.79 MHz
ROM10 KB
GraphicsANTIC and GTIA chips
Release Year1979
Display Resolutionup to 320 x 192
Colors128 colors
Sound4 channels
StorageCartridge, cassette, floppy disk
PortsCartridge, serial, monitor
Operating SystemAtari OS

Related product manuals