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 #92 background imageLoading...
Page #92 background image
90
User's
Handbook
to
the
Atari 400/ 800
Computers
response
other
than that
prompted
for.
The very
nature
of
the
Input
statement prevents certain errors
from
occurring
as
these are detected by the BASIC
interpreter
.
For
example,
if
a
numeric
entry
is
made
when
a string variable
is
specified
with
the
I
nput
statement,
an
error
will
occur.
Li
kewise,
if
a string
entry
is
made
when
a
numeric
variable
is
specified
with
the
Input
statement,
an
error
will
occur.
However
, many
Input
entry
errors
will
not
be
detected
by the
BASIC
interpreter.
Serious errors can
occur
when
the
wrong
data
is
entered
in response
to
an
Input
statement. It
is
a
good
programming
practice
to
check the
operator's
response
to
an
Input
statement. This can
either
be accomplished
with
one
or
more
IF-THEN statements,
or
with
ON-GOTO
or
ON-GOSUB
statements.
For
example,
in
the
following
program
,
the
operator's
input
is
checked
with
two
IF-THEN statements.
If
the
response
is
neither
of
the
following,
Y,
N,
y, n
the
program
will
branch back
to
line 1200
for
a
new
entry.
1000
DIM
A$(20)
1100 PRINT
1200 PRINT "Enter Your
Response
(Y
I
N)"
1300 INPUT A$
1400
A$
=
A$(1
,
1)
1500
IF
A$
= "
Y"
OR
A$
=
"y"
THEN 1800
1600
IF
A$
=
"N"
OR
A$
=
"n"
THEN
9999
1700
GOTO
1300
1800
REM
Subroutine
For 'Yes' Response
1900 PRINT
"YES"
9999
END

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