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 #72 background imageLoading...
Page #72 background image
70
User's
Handbook to the Atari 400/800 Computers
Note
in
line
910
that
a
GOTO
statement
is
not
used
to
precede
the
line
number
being
branched
to
.
When
a
line
number
is
indicated
following
a THEN
or
ELSE
statement,
the
computer
does
not
require
the
presence
of
GOTO,
which
is
assumed.
ON,
COlO
Statement
The
ON,
GOTO
statement
is
a
combination
of
a
conditional
statement and a
branching
statement. The use
of
the
ON,
GOTO
statement
is
illustrated
in
the
following
program.
100 INPUT A
200
ON
A
GOTO
250,260
210
GOTO
999
250
PRINT A:
GOTO
100
260
PRINT A 1\
2:GOTO
100
999
END
If
the
variable
or
expression
following
ON
evaluates
to
1,
program
control
branches
to
the first
line
number
specified after
GOTO
;
if
2,
to
the
second;
if
3,
to
the
third,
etc.
If
the
variable
or
expression evaluates to a
number
greater
than
the
number
of
line
numbers
following
GOTO,
program
control
will
branch
to
the
statement
immediately
following
the
ON,
GOTO
statement. This
is
also the
case
if
the
variable
or
expression
following
ON
evaluates
to
zero.
Subroutines & COSUB Statements
Many
times you
will
find
that the same set
of
program
instructions
are used
more
than
once
in a
program
.
Re-entering
these
instructions
throughout
the
program
can be very
time
consuming.
By
using subroutines, these
additional
entries
will
be
unnecessary.
A
subroutine
can be
defined
as
a
program
which
appears
within
another
larger
program.
The
subroutine
may be executed
as
many times
as
desired.

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