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 #71 background imageLoading...
Page #71 background image
I
ntroduction
to
Atari BASIC
69
altered
to
any
line
number
desired. The most
commonly
used
branching
statements in BASIC are
GOTO
and GOSUB.
GOTO
takes the
following
format:
GOTO
lin
e
numb
er
For example, the
following
program
statement:
500
GOTO
999
999
END
would
branch
program
control
at
line
500
to
line
999
.
Branching statements are
often
used in
conjunction
with
conditional
statements. In such a situation,
the
normal
execution
of
the
program
is
altered
depending
upon
the
outcome
of
the
condition
set
up
in the
IF
statement. This
is
shown in
the
following
example.
050
DIM
A$(99)
100
PRINT "ENTER
THE
AMOUNT"
150
INPUT A
200
IF
A
==
0 THEN
GOTO
900
900
PRINT "ARE
YOU
FINISHED
(YIN)":
INPUT A$
910
IF
A$
==
"N"
THEN
100
999
END
In
our
preceding
example,
if
the
value
input
for
A
has
a
zero
value,
then
the
program
will
branch
to
line
900
where
the
operator
will
be
prompted
whether
he
has
finished
entering
data. In
line
910, the
program
will
set
up
a
condition
where
if
the
input
was
'N
', the
program
will
branch
to
line
100
.
If
the
entry
was
not
equal
to
'N',
the
program
will
continue
to
line
999.

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