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 #81 background imageLoading...
Page #81 background image
Advanced Atari
BASIC
79
The
following
program
illustrates
the
use
of
the
ASC
function:
050
DIM
A$(20)
100
A$ = "JOHN
JOHNSON"
200
PRINT ASC(A$)
300
END
RUN
74
Escape Sequences
in
Strings
Generally,
the
cursor
movement
characters may
not
be
included
within
a string. They may,
however,
be
included
if
they
are
preceded
by the
operator
pressing
the
Escape key.
When
the
Escape
key prefixes a cursor
movement
key,
the
combination
is
known
as
an
escape
sequence.
The
following
program
will
illustrate
the
use
of
an escape
sequence.
100
PRINT
"JOHN-N-JOHNSON"
200
END
RUN
JOHN JOHNSON
In
our
example,
the
symbol-
denotes pressing
ESC
followed
by
CTRL-+. The symbol
- denotes pressing
ESC
followed
by
CTRL-*.
In
our
previous example,
the
cursor
movement
itself
was
accomplished by using
an
escape sequence.
Each
cursor
movement
is
also associated
with
a character
as
shown in
Table4-
1.
By
pressing the
Escap
e key twice
before
the
cursor
movement
key sequence, this character
will
be
output.
This
is
shown in
the
following
program.
100
PRINT"
Ed Ed
Ed
"
200
END
RUN
i t i

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