Atari 800 Hardware Manual, Part1
Atari 800 Hardware Manual, Part1
Atari 800 Hardware Manual, Part1
ATARI'HOMECOMPUTER
SYSTEM
HARDWARE
MANUAL
/t\
ATAR l' ^,."", -.mm6rcre
c.mpa^y
o
COPYRIGHT 19 82T ATARI ' INC'
ALL RIGHTS RESERVED
TO ALLPERSONS
RTCEIVINC
IHIS DOCUMENT
Reproductionis forbidden without the specilic written permissionof
ATARI,lNC. Sunnyvale, CA 94086.No ri8hl to reproducethis document,
nor lhe subiectmatterlhereof,is grantedunlessby wrilten agreement
with,
or written oermission
from the Corporal;on.
Every effort has been made to ensure that this manual accurately
documents this product of Lhe ATAR] Home Computer Division.
However, due to the ongoing irnprovement and update of the computer
software and haralware, ATARI, INC. cannot guarantee the accuracy
of printed naterial alter the date of publication and disclairns
I i r|\i I i +rr T^r ^h.n^6c
, a- r-r . - J r s , o r o n l s s l o n s .
TABLE OF CONTENTS
I. I N T R O D U C T I o, N. . . . . .... . .. .I. I
. . . . . . . . . .' ,. . . . r rt.
B. POKEY......,. .........rr.23
c. S E R I APLORT........,.............,..,...II.25
D. I N T E R R US
PYTSTEM.....,,..............,,.1r.28
E, CONTRoLLERS,, . ....... .rr.30
III. H A R D W AR
REEC T S T E R
. .S
. ... . .. .. . ,. .. ... .. .....rr1.1
rv, pRoeRAM...,...................IV.
s A l t p L ED I S P L A Y I
HAIDIIARERECISTER LISTS. . . . , . . , . . . . v t.
A. A'DRESS ORDER. ........,.....v.1
B. AI,PHABETICALORDER. ;.........,...,v,5
APPENDIX C: PINOUTS
1t
I. INTRODUCTION
The ATARI (R) 800rM and ATARI 400rM Personal conputer systems
colrtaln a 6502 nlcroprocessor' 4 I/O chtps, operating systen ROI'I' expandable
R-Alt, and several MsI chlps for sddress decodlng and data bu8 bufferlrg.
Thls nernral ls prloarlly lntended to descrlbe the 4llo chtps tn sufficent
detall to a11ow experlenced plograd&exs to create assembly tanguage Prograrns'
such as vldeo ganes. A11 four Inpul/Ortp\rt chips are controlled by the
rnlcroprocessor by nrltlng dlrectly lnto thell reglsters $hlch are decoded
to exlst ln Elcroprocessol nenory space Just as RAM does. These l/o chtps
can also be interrogated by the nlcroprocessor by leadlng slrdlar reglsters'
!,lany reglsters are wllte only and cannot be read after they are
wrltten. In aone ceses, reading fron the same addless glves the value
contalned ln 4 separate read only reglster. Sone wrlte only reglsters are
gtrobes. No data blts are deeded ln thls case slnce lhe presence of the
address on the bus ls \rhat trtggers the requested actlon. The usual
. conventlon 1s to use the STA (Store Accufillator) hstructlon for such
reglsters. For exanple, STA WSYNC perforrns the ltait for Sync functlon'
STX (Store x) or STY (store Y) vould ltork lust as weL1. In BASIC' a P0KE
could be used (the data could be anythlng). Readlng a reglster ls accoDp-
115hed by using eny of the load instrrcllons (LDA' LDX etc'). Ifl BASIC
a PEEK would be used. When lhe hardltare register naEes are deflned 1n an
equate llst' the proglaxmer can refer to the registers by name ralher than
uslflg the addresses dtreclly.
r,2
II. DESCRI?TION OF I{ARDWARE
Operatlnq Svsten (0S): The ATARI 400/800 cones wtth a loK Operatlng
Systen (OS) ln ROM. The 0S affects sone of the hardware registers, so
it !d11 be Eentloned fron tltae to tlltre in lhis nanual. Refer lo the OS
nanual for nore deta11s. The 0S descrlpttons in thls na[ua1 apply to the
verslon lhat was belng dlslrlbuted when thls nanual I'as written.
II.1
The 0S uses 192 TV llnes for its display and devotes the remalnlng
24 ltnes to overscanr It uses the standard dlsplay irldth of 160 color
clocks, The hard\rare will allo\r displays of any length, but it ts recon-
nended lhat the standards be followed. The exception night be a border
or other lnfornatlon whlch is nerely decota!1ve and not esse[tla1 to use
of the prograno.
Obiect DMA (Direct Menorv Access): The primary functlon of the Antlc
chip ls to fetch data fron roenoty (independent of the nlcroprocessor) for
display on the TV screen. It does thls lrlth a lechnlqle called "Dlrect
Meoory Access" or Dl4A. It reqrests lhe use of the inenory address and dala
bus by sending a stgnal called HALT to lhe microprocessor, causlng the
processor to becoEe "TRI-STATE" (open circuit) all durlng the next cornputer
cycle. The ANTIC chlp lhen takes over rhe address blrs and reads any data
it r,rishes fron nenory. Another nan€ fo! Lhis rype of DMA 1s "cyc1e stealing".
Once lnitlated, this DMA is conpletely and autonatically conlrolled by lhe
Antlc chip Fithout need for futher microprocessor lnlervention.
There are l\ro types of Dl4A: Playfleld and Player-Missile (see Figure
1I.2). The playfield Dl4A control clrcult on the Antlc chip resernbles a
snall durnb drlcroprocessor. By halting the main nicroprocessor 1t can
fetch its ol'n instructions fron uernory (lhe dtsplay list) addressed by 1ts
program counter(d1splay llst poln!e.). Each instructlon defines the type
(alpha character or nemory nap), and the resolurlon (slze of bits on the
screen), and the Iolation of the data ln menoryL'hich is to be dtsplayed
group or rlnes.
II.2
Ir ordel to begln thls DI,IA the natn nlcroprocessor lnrsE sEore a
dlsplay l1st of lnstructloos ln nenory, store data to be dlsplayed ln
tdenory, tell the ANTIC where the dlspfay ltst ls (hltlallze the display
1lst potnter) and enable the DMA control flags on the ANTIC (D}.IACTL
register).
III addltlon to the two rypes of dlsplay DMA, the ANTIC chlp also
generates DMA addresses for the refresh of rhe dynanlc nenory RrlM used
1n thls systen. Thla ia also coDpletely autollattc and need be constder-
ed by the programer only lf he ls concerned with real-tlue progrardolng
where an exact count of the conputer cycles 1s lrnportant.
Plavers and }llsslles: The players and nlssiles are snall objecLs
whlch car be moved qutckly in the hortzontal dlrecrlon by changing thelr
poeltlotl reglsters. They are called players and Eissiles because they
$ere orlglnally deslgned to be used ln games for objects such as ahplanes
and bullets. Itowever, there are nany other posstble appllcations for
then. The four player-rulsslle color registers, ln conjunclton l'lth the
four playfield color reglsters and the background color teglster, raake
It posslble !o dlsplay 9 different colors ar the sane ttr0e,
II.3
obj ec!s = background)
MEMORY},IA?
con!!o11ed by
Displai ltst
lnstructlons
(DI,IACTL)
Playfleld
Dl,lA Erable
MICRO
PROCESSOR
I ' I E M O R Y