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 #80 background imageLoading...
Page #80 background image
78
User's
Handbook
to
the
Atari
400/ 800
Computers
If
line
200
was
revised
as
follows,
200
X$
=
"JOHN"
the
following
could
be
output:
JOHN JOHNSON
The
addition
of
a blank space in
X$
results in one
additional
blank
space
being
output.
CHR$
& ASC Functions
As
mentioned
earlier, characters are represented
with
the Atari
as
ASCII codes. Atari BASIC's CHR$
function
can be used
to
translate
an
ASCII code
to
its equivalent character. The
following
short program illustrates the
use
of
the CHR$
function.
100
PRINT CHR$
(54)
200
PRINT CHR$
(55)
300
END
RUN
6
7
The CHR$
function
is
often
used to represent characters in a
statement,
when
that character can
not
be
represented in
its
text
form. For
example, in the
following
program,
100
PRINT CHR$(34); "JOHN
JOHNSON";
CHR$(34)
200
END
RUN
"JOHN
JOHNSON"
quotation
marks are specified in th e PRINT statement using
their
ASCII code and the CHR$
function
.
The
ASC
function
returns the ASCII code equivalent
for
its string
argument.
If
this string
is
longer than
one
character, the
ASC
function
returns the ASCII code for just the first character in the
stri ng.

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