EasyManuals Logo

Atari 400 User Manual

Atari 400
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 400

Questions and Answers:

Question and Answer IconNeed help?

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

Atari 400 Specifications

General IconGeneral
ManufacturerAtari
Model400
TypeHome Computer
Release Year1979
CPUMOS Technology 6502
CPU Speed1.79 MHz
ROM10 KB
Operating SystemAtari OS
KeyboardMembrane keyboard
RAM8 KB (expandable to 48 KB)
GraphicsANTIC and GTIA chips
Sound4 channels
DisplayRF output for connection to TV
StorageOptional cassette tape drive or floppy disk drive
PortsCartridge
Display Resolution320x192 (16 colors)

Related product manuals