EasyManuals Logo

Atari 400 Hardware Manual

Atari 400
113 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 #98 background imageLoading...
Page #98 background image
Mixing
Graphics
Modes,
cont.
III.
PROCEDURE
TO
PRINT
AND
PLOT
IN
MIXED MODES,
cont.
2.
cont.
c.
If
few
characters
will
be
printed,
then
each
character's
internal
value
may
be
looked
up
in
the
Internal
Character
Set
Table
(Table
9.6),
in
the
new
BASIC
Reference
Manual.
This
value
is
then
POKED
into
CHRPOS.
d.
If
strings
are
to
be
output,
and
if
the
ATASCII
values
of
all
the
characters
lie
within
one
of
the
ranges
shown
in
the
table
below,
then
do
the
following:
1)
Obtain
the
appropriate
ATASCII
value
range
for
the
characters
2)
Do
the
OPERATION
the
table
indicates
on
the
ATASCII
value
of
each
character.
3)
POKE
this
value
into
CHRPOS.
ATASCII
VALUE
RANGE
OPERATION
0-31
Value
+
64
32-95
Value
-
32
96-127
NONE
128-159
Value
+
64
160-223
Value
-
32
224-255
NONE
Example:
1)
assume
we
want
to
print
the
word
"TEXT"
in
the
mode
2
area
of
example
#1
using
the
CHRPOS
calculated
previously.
2)
these
characters
are
in
the
ATASCII
VALUE RANGE
of
"32
-
95".
3)
the
OPERATION
for
this
range
is
"Value-32",
so
32
must
be
subtracted
from
each
ATASCII
value.
4)
the
program
statements
would
now
look
like
this:
T$(1,4)
CHRPOS
"TEXT"
MEMST
+
2385
FOR X = 1
TO
LEN(T$)
POKE CHRPOS
+X
-
1,
ASC[T$(X,X))
-
32
NEXT X
t
(OPERATION:
value
5)
the
FOR/NEXT
loop
POKEs
the
first
character
ofT$,
ASC[T$(X,X))-32,
into
CHRPOS + O.
6)
the
next
iteration
POKEs
the
next
character
of
T$
into
the
next
CHRPOS,
and
so
on.
B
-7-
t
32)

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