Professional Documents
Culture Documents
TECHN ICAL
REFERENCNE
OTES
includes:
OperatingSystemUser'sManual
OperatingSystemSourceListing
and
HardwareManual
TO ALL PTRSONS
RECTIVINCfHIS DOCUMTNT
Reproductionis forbidden without lhe specificwritten permissionof
ATARI,lN(. Sunnr\ale,(A q408b.No risht to reprodu(elhi\ do(umenr,
nor the.ubie(l m.tllerlhereof,i. Brantedunles\br $ri en rgreement$ith,
or rvritlenpermissionfrom the CorDoration.
/t\" "
ATAR| ^-","",
".-**--.c.*-!o
ATARI%oo/8oo
ATARI"HOME COMPUTERSYSTEM
OPERATINGSYSTEM
MANUAL
USER'S
/t\
ATARI'.
-"^.--^--,-.-*-,
s
C O P Y R T G H T1 9 8 2 , A T A R I , I N C .
ALL RIGHTS RESERVED
IO ATT PERSONS
RECEIVINC
THIS DOCUMENf
Reproduclion is forbidden without the specific written permission of
ATARI,lNC. Sunnyva'e, CA 94086.No rightto reproduc€this documenl,
nor the subiectmatter thereof, is grantedunlessby written agreem€nrwilh,
or wrillen oermissionfrom the CorDoration.
Every efforl: has been made to ensure that this manual accurately
alocuments this product of the ATARI Hoine Computer Division.
Ho$rever, due to the ongoing improvement anal update of the computer
software and hardware, ATARI, IllC. cannot guarantee the accuracy
of printed rnaterial after the date of publication and disclains
liability 'o-r changes, errors, or omissions-
ATARI Ho e Cofip uter
Opereting Sgsten USER'S MANUAL
PREFACE 17
INTRODUCTION 1A
CENERAL DESCRIPTION
OF THE ATARI COI'IPUTERSYSTEM 1A
CooventionE U6ed in ThiE Manoel
HEXADECII4AL NUMBERS 20
MEI.IORYADDRESSES
KILOBYTES OF IIEIIORY 20
FASCAL AS AN ALGORITHM-SPECIFICATIAN LANGUAC€
MSI,IORYLAVOUTS 20
BACKUS-NAURFORM (BNF)
OS-EOUATE F ILSNAI.IES
OFERATINC SYSTEM FUNCTIONALORGANIZATION
I n p u t l o { . r t p u t S u bs q s t e o
Interr"upt Froc es6 ing
Initirl i.ation
Pouer-Up 22
Srts tett| R€9€ t 23
CONFIGURAIIONS 2e
Progran Envi r onfientE 23
R A M E xp a n 6 i o n
P e r 'i p h e r a 1 D e v i c e E
RAHRegion e9
Pege O 30
Page 1 30
OS D€ta 8es€ 30
UEer l.lortspate
Boot.8€9ion 31
S.reen Displag Li6t and Data 31
F r e € l { e m o r g R e gi o n
4
C a rt r i d g e s A a n d g
l'lapped I/O
Re6ident OS and Floating Point Packag€
Centia 1 Data BeEe DeEc.iption
l,le{florq Dgnafii c a
Sgrtem Initializetion P r o Ee 6 E
C h a n gi n g S c r e e n I ' l o d € s
I,/O SUBSYSTET'I
DEVICE INDEPENDENCE
DATA ACCESS I'IETHODS
I'IULTIPLE DEVICE/FILE CONCURRENCY
UNIFIED ERRAR HANDLINE
DEVICE EXPANSION
D e v i c e S p e ci f i . I n + o r r n a t i o n 50
K e q b o a r d H a n dI e r . 90
T h 6 o . g o f O pe r a t i o n 51
D i E p1 a g H € n d l e r ( S : ) 54
Scaoan llodes
TEXT HADE O 54
TEXT }'1ODES1 AND 2
eRAPHICS ODES (Modei 3 Thiough 111
SPLIT*SCREEN CONFIOURATIONS
C I O F u n ct i o n D e s e r . i t t i o n 6
User-AIterab 1e DEte Base Variables 61
Theor! of Operation
C a e E e t t e H a n d1 e " ( C : )
C I O F u n ct i o n D e s E r i p t i o n 6
T h e o r g o f O pe r a t i o n
Fi 1e Str uctuf e
Pr inter Handler (F: )
CIO Flnction DeEctiptiong
T he o r g o f O p e r € t i o n
S p e ci a l C I O f u n c t i o n 5
l h e o r g o f O pe r a t i o n
F l ' l SD i s k e t t e U t i l i r € t i o n a9
FMS BOOT RECORD FORI'IAT 90
BOOT PROCESS I'IEI.IORYIIAP s2
VALU''IE TABLE OF CONTENTS
FILE DIRECTORYFORT4AT 94
FIIS FILE SECTOR FORI'IAT 99
Non-CIO I/0
R e si d e n t D e v i € e H a n dl e r Vectorg
R e s i d e n t D i s f t € t t e H a n dI e i 97
D i e k e t t € H.nd ler Co|llmand 9 99
C h i p - R e Fe t
N o n o e E * e bl e Intarrupts 103
S t a g e 1 V S L A N KP r o c e E s 1C4
S t a g e 2 V B L A N I 4P i o c e E i
H a sk e b l e I n t e r r u p t E
Interrupt Initislirstion 10e
givstem T ioers 109
Usage Not€9 109
H a n dt .e . , / S I O I n t e a f a c e 142
Calling MechEnisdr 142
F u n E t i o n 6 S u pp o f t e d L44
Er.r.or Handl ing L44
H a r d u a r e / E l e ct r ' i c a I C h e r € c t e r i s t i c s 145
Seria I Poit Electrical Specificetions 147
Bus Comanandg 147
COI'II,IANDFRAI'IE 144
COMhANDFRAI'TEACKNT]WLEDOE 148
DATA FRAI'IE t49
OPERATIONCOMPLETE 149
H e n d1 s r E n v i r o n m e n t 192
B o o t a b 1 e H € n d1 e r 193
C a r t r i d g e R e si d e n t H a n d1 e r 153
FlolrEh€r'tE 153
Cepabiliti6r 170
Conf I iE t6 l.lith OS 170
H a r d | l r a i e C e p a bi l i t i € 9 L74
Conf I icts lrith Og t74
10
APPENDICES
t1
B. TEXT/ORAPHTCSSCREEN
D. 223
KEYBAARD
X e V R e E di n q a n d D e b o u n . i n g 229
9 p e Ei a l F u n c t i o n 5 eeo
Star. t/Stop e30
Autol'ep€it 231
Inverse Vi deo Control
Console Kegs: tSELECTI,tSTARtl, and tOPllONl
PRINTER 232
Printer-Bu++er'
Interna I tlo, I ing vaii€bleE
E . C E N T R A LI / O R O U T I N E ( C I O ,
U s e r C e1 1 F € r € o e t e ? s
1/U L O N E P O1 IJlOEX 233
Device Statu6
D e v i . e T a bl e 233
CI O l H a n d 1 e r I n t e r + a c e P a t a n e t e r s 235
Zeio-Page IOCB 235
I nterne I l,lorking Veriables
ATART CONTRf]LLER5
J o r js t i c * E
Paddlee
Light Pen 249
D.iving Control lerE 246
N. F o u e r - U p a n d $ g s t e f l R e 6 et 249
I NDEX 271
t4
TAELE OF ILLUSTRATIONS
15
Fi gure 6-1. List of SgBtem IntetruFt Eventg t02
Fi g u r e 6-?. Interruo t RAll Vectof Initialiration 108
Figure 6-3. P O I ( E YI n t e r r u p t M a 6 t E r a m p t e 1to
Figure 6-4. I n t e r r u p t a n d T i m e r V e c t o r R A MS t a c l
Content Tabl e
Figure I / O S u b s g 6 t € mF l o u D i a g r E m 133
Figure D€vica table Forlll3t 134
Fig!re H 6 n d1 e . V e ct o r T a b l e 135
Figure Serial 8uE Coflnectot Pin Descriptions L46
Figure Seriel Bus ConnEnd Ftafle Format 144
Figure Ser i61 lls Timing Diagran 151
16
PREFACE
This rl€r|oal deEcribes the r.sident Operating ggste|'l (US) +or the
ATARIe Hofie Computea. tor readers oho are f€miliar urith the
int€rnel behavior o+ f,he E96tem. It diBcusEes:
S u b 6 q 6 t e mr e l a t i o n 3 h i p s € n d o r . g a n i r a t i o n
T h i s l n € n u € 1d o e E n o t p r e s e n t a c o { n p r e h e n s i v €d e E c r i p t i o n o + t h e
hardqrEre used to prov:d€ OS iapabilites. T h e p i o g r ' a m m e t .u h o n e e d 5 t o
go begond the rapabilities descr.ibed Ehould consult the ATARI Home
C o m p u t € r H e r ' d { r a re H € n u €} .
O P E R A I I N GS Y S T E } 4C 4 1 6 9 5 5 - - Section 1
I7
1 INTRODUCTION
Bper€ti.ng iqstenr i n t h e A T A R I @4 O O t T M l a n d A T A R I E O O I T M ] H o m e
Computer are identicel. The primarg differenceE bet{reen the turo are:
o Phgsicel Faclaging
o Th€ ATARI 8OO conpstei' has a nonitor Jack, th€ ATARI 4oo
Comouter does not.
O P E R A T I N GS Y S T E HC O 1 6 $ 5 5 - - Section 1
1B
r 6502 |
i p l ' o a e 6 s o ri
+----+----+
I RATI
I OOOO-r x x r
iCartridge I
t---------+E I o t s A&BI
I IBOOO-BFFFI
Pforessor
externEl +---------+
bus i +-----*---+ Jogst:€ks I cont?ol- i
I I PIA +--------+----------+ I er oorts !
+---------+ +-------- i -------+ I i
1......... ID 3 O O - D 3 1 F + - - - - - - - -i - - - - - + | +---------+
; IRO +---------+ I i t
I : | | +---------+
| | ilegboard i
i I idata legsi
+--------i-----t-i--+ + BREAK I
i . . . . . . . . . I D2OO-D21F+-------- i ---+ | | +---------+
I IRO +----+----+ audio | ! ! I on/off
i +------------- i -+ | | i +---------+
i +----+----+ trig5 I i i i + - - + cassette I
i I CTIA +--------+ i i i linterfacei
+-----+ i +-l-i----+ I
! DOOO-DOlF+----- i -- | -+ i ! +---------+
+----+----+ i I i i +----+ eerial I
i video I I i I i t/o I
DMA +----+----+ litpen i i +------+ bug I
.....-...1 ANTIC +--------+ i
1......... iD400-D41Fi | |
NMI
froo I console
' i
CTIA -+ speeker
conpo6it€ t"----+ i
audio/video i +---------+
i +---------+
i i START,
I OPTION
Figu'.e 1-1. A T A R I H o f l r €C o n p u t e r B I o E t D i a g r € f t
T h i E m t s n u e lu 6 e s t h € f o l l o u r i n g s p € a i € l notetions:
H €r a d e c i | n € l N u m b e r s
A t l t u i o - d i 9 i t n u { n b e " sp r e c e d € d b q a d o 1 1 € r s i g n ( $ t d e s i g n a t e
hexadecimal nuobers. All other nunbers (exE€pt ftemorg addresE€E)
are in deci.nal +orm snless other{ri6e EpeEified in the suppor.ting
t€tt.
Me$or.gAddreEEes
P A S C A LA s a n A l g o | . i t h o - S p e c i f i c a t i o n Language
T h e P A S C A LI e n g u € g e ( p r o c e d u ? E b l o c l o n l g ) i s u s e d a 9 t h e
specification l a n g u a g e i n t h e + e u p l a r e s | , h e r . €E n a l g o r i t h t n i E
ipecifi€d i n d € t a i 1 . P A S C A Ls g n t a r i s 6 i n i l € r to ang numbei o+
other bloct-strlctuied lEnguag€i, end gou Ehould have no
dif+icultg follouin9 the eoda presented.
7 6 3 4 3 2 1 0
+-+-+-+-+-+-+-+-+
i i --- This i6 e single bqt€.
+-+-+-+-+-+-+-+-+
+-+-+-+-+-+-+-+-+
i i
--- This iE a blorft o+ |tlenorq
r i of unspecified length.
+-+-+-+-+-+-+-+-+
OPERATINGSYSTE|4CO16S53 -- Section ,.
A i t 7 i E t h s m o e t E i g n i t i c a n t b i t ( H E } B )o f t h e b { t e , and Bit O
iE the least Bignificant bit (LSB).
'
In t€61es snd figure6, dtemorgaddreEses a1{r€qs increa6e touard the
botton of the figure.
Baclu6-Naur Forft
t I an optional conEt?uat.
F o r E x a n p1 e :
< d e v i c e n a . n e >: : = C i D ! E i K l P i R t S
OS Equate Fi leneneE
U p e . a t i n g S g s t e m R O M ( R e e d O n l U l ' l e o o r { } a n d R A l " l { R s n d o { t lA € E e s s
l ' l e m o r g l v e € t o i n a m e s , R A l " !d e t a b e s e v a r i a b l e n e m e s a n d h € i d u a r e
regi.ster n€nes are ell referred to bq the names€Esigned in the Og
p r o g ? a m e q u a t e 1 i 6 t . l ^ r h e no n e o f t h e g e n e i n e s i s u s e d , t h € m e m o r g
e d d r e s E i E ! s u a l . l r J p r o v i d e d , s u c h a e E O U T A Dt 0 2 4 2 l .
A P E R A T I N CS Y S T E MC O l 6 5 5 5 - - gection 1.
2 OPERATINO SYSTEI{ FUNCTIANAL OROANIZATION
Inputl0utp ut Subigiten
A R A t ' ld a t a b € i e p r o v i d e s e c c € 6 s t o c o n t r o l l e l ' s ( J o ! s t i . k E a n d p a d d l e
controller6), i l h i E h d o n o t d e € 1 u i t h c h a i a c t e r d e t E . T h i 5 R A t ' ld a t a
base is periodicallg updated to sho{, the states of these device9.
INTERRUPT PROCESSINE
INITIALIZAIION
Pou€r-Ut
O P E F A T I N OS Y S T E MC O 1 6 5 5 5 - - SeEtion 2
o D e t € r n i n € E t h e h i g h e E t R A Ma d d . e 5 5 .
TSYSTEH.RESET]
OPEFATINGSYSTEI'ICO16955 -- Section e
23
FLOATINE PAINT ARITHMETTCPACKAOE
T h e O S R O Hc o n t a i n 3 € F l o a t i n g P o i n t ( F F ) p a q k a g e t h a t i 6 € v a i l a b l e
to nonrEsident piograne such as ATARI EASIC.
The pactage i6 not uied bU the oth.|' pattE of the OS itiel+. The
f l o a t i n g p o i n t n u l t l b e r sa r e i t o r e d a E 1 0 g C D d i g i t F o f o € n t i s E a , p l u s a
l-bgte exponent. The pactage aontains theEe routineE:
T h e A T A R I 4 O O a n d A T A R I 8 O O H o r n €C o t n p u t e r s s u p p o r t a
t id{ val.ietg of configlreti.onE, eech urith € uni.{ue operating
envir onment:
PROORAMENVIRONITIENTS
o A c€r'tridge-reEident progrem
o A diskette-booted piogi€m
o A cassette-booted pl'ogram
Bl€clbodrd ModE
OPERATINGSYSTET'ICO16555 -- Section 3
prioritg environnent, or bq defa!:t, if there iE no other
rea6on€bIe envi?onoent for the OS to enter. For er€ftp1e. t{ping BYE
in BASIC cauEeE the OS to enter the bleEkbos.d mode. The b1€c|(boeid
n o d e . a n b e e r i t e d b ! p r e s s i n g t h e t g Y S T E t ' lR
. ESETI keq i+ it uas
ente"ed froo a higher envlronment.
Ca.tridge
Dl skett6 Eoot
The diil€tte marl or oag not be booted {rhen the 6g9ten pouers up
qrith di6lette-bootable ioftuare. T h i s p a r a g r . a F ha s s u | l l e st h e t a
di6Lette boot did o€cur. See Section 7 for boot condition
erplanations.
Cassette-Boot
OPERATINGSYSTET'ICO16595 -- Sertion 3
RAII EXPANSIAN
PERIPHERAL DEVICES
GameControIlerE
T h e A T A F I 4 l O t T M l P r o g r a r nR € . o r . d e r i 6 a 5 p € c i E t p e r i p h e f a l . It uses
the seriEl bus to send end r'eceive data, but doee not confo"n to
the proto€o1 o+ the other peripherals th€t uee th€ serial bus. The
Prograo Re[oider must also be the last d€vi€e on the Eerial buE,
b e t E { , t g ei t d o r s n o t h a v e s s e t i e l b u s e x t e n d e f c o n n e c t o r e E t h e
other peripheF:lg do. Ihere Eal| never be moae than one pr.ogreln
Recoider connected to €ng sggteo +oi the sam€ re6son. The sqsten
.annot €€nge the pre6ence ot abgence of the Progra& Recoider, Eo it
€en be connected and diEconflected at ui11.
O P E R A T I N eS Y S T E I IC O l 6 5 9 9 - - Section 3
SeriaI BUEDevires
RAH REEION
T h F O S a n d t h e c o n t r o l p r d g r e n 6 h a r e t h e R A Mr e g i o n . T h e R A H r . e g i o n
can be fuither EUbdivided into the follouing sub negions for
d i E c u 6 5i o n p u r D o E e s :
T h e p a r a g r s p h s t h a t f o l l o t , d e 6 . r i b e h o u t h e O S u s e s R A ME u b r e g i o n 5 ,
e n d p 1 " e s e n t 6u 6 e r p r o g r a r n r e c o m e n d e t i o n E .
O P E R A T I N CS Y S T E i 4C O l 6 5 9 5 - - Sertion 4
29
Page o
T h e u p p e r h a l + o f p a g e O ( O O B Ot o O O F F ) i E e v a i t a b l e t o o l t e r
environoents trith the follouing restriEtion: the ftoating point
pEElage, if ured, fequires OOD4through OOFF.
Page 1
OS Data Eeie
L o c € t i o n g O 2 O Ot h r . o u g h O 4 7 F a r e e l l o c a t e d b r t t h e O S + o r u o i k i n q
vtsri€bles, tableE €nd deta buffers. Poitions of this region can be
used onlg after gou deterftine thet nonconflict rrrith the US
i5 guer.snteed. For' exeopla, the printer and da6sette bLrffers could be
used if L/O opet'€tionE to the5e deviceg are impo€sible urithin the
controlling environment. The amount of uor|( involved in deter.mining
nonconflict seemg to be coopletelg out o+ line 0rith the bene+its to be
gained (erc€pt for a fe{r trivial c a s e s } a n d i t i 9 r e c o m n e n d e dt h a t
pages 2 through 4 not be uged ercept brJ the US.
I O16555 --
O P E R A T I N GS Y S T E I ' C Section 4
30
User Nortspace
LocatiqnE O48O thaough O6FF €re dediceted *or outer environment u6€
ercept {rhen the floating point paEkage is uBed. The +loating point
package ureE loestions O57E through O9FF.
B o o t R e gi o n
Prge 7 is the Etirt of the "boot rEgion. " Whenso+tuere iE booted fron
eithef the diskett€ or the caesette, it c€n st€rt et the louest free
o $ t n o t l a d d r . e a c ( t h r t i 6 O T O O )a n d p r o c e e d ! p u a r d ( a l t h o u g h i t c € n a l s o
5t6tt at.ng a d d t e E s a b o v e O T O Oa n d b e l o t r t h e E r ! . e ! n d i E p l a r J l i E t ) .
T h e t o p o f t h i s i a E i o n d € f i f l € 6 t h e 6 t a r t o f t h e , , f r e e ( n € { n o r r j ' ,r e g i o n .
[,lhen the boot pr.oEess is EotnpIete, a pointe" in the d€t€ baEe containg
the 3ddt'esEof the nert €vailable location above the goftdare JUst
booted. Whenno softuare ha9 been booted, thi6 rointer contains the
velue OTOO-
Wh.n th€ OS is hendling th€ screen displarJ, the di.pl€q liEt that
de+ines the srreen ch€raateristiEs End the .urrent d6ta that i6
contained on the Fcreln are rlec€d 6t the high address lnd of RAM. The
b o t t o . n o + t h i s r € 9 i o n d € f i n e s t h e end of the free oemorq region and
its 1oc€tion i6 a +unction o+ thr scieen ftode cuirentlg in ef+ect. A
pointai i.n the data base aontaing the addresE of the I€Et availabl€
loration belou the screen reoion.
The +r'ee nenorg t€gion is all the RAt{betd€€n the end o* the boot
region End the rtart of tha screen region. Tfte outer Ievel applir:tion
iE r€sponEible foa managing the free ftefioag regi.on.
CARTRIDEESA AND 8
DOOo-DO1F = CTI A
D2OO-D21F = POKEY
D3OO-D31F = FIA
D4OO-D41F = ANTIC
The region from llgoo through FFFF:lue{s containi the OS and the
floating point pa€kage. Cere 6hou1d be t:*en to avoid u9in9 ang entig
pointE that ar.e not guarenteed not to move, to €lIorJ for the
possibilitg that another, but function€11q competible, OS can bc
gen€rated in th€ future. ThE BS conteins mang vectored entrU points et
t h e e n d o f t h e R O Ms n d i n R A H t h a t u i l l not move. The floating point
paeldge is not vectored, but a1I documentedentrg pointB qrill be
f i r e d : D o n o t u s e u n d o c u m e n t e dr o ! t i n e E + o u n d b g s c a n n i n g t h € l i E t i n g .
A 1 i s t o + t h e f i r e d R O Mv e c t o r s c a n b e + o u n d i n A p p e n d i r J .
See Appendir L.
MEI'IDRYDYNAT.IICS
T h e f i e e m e m o r qr e g i o n i E t h a e a e a b e t u e e n t h e e n d o f t h e b o o t r e g i o n
end the Etart of the screen r.€9ion. Aa ruch, its timit6 are variable.
M E M L At O Z E T l d e f i n e 5 t h e b o t t o | n o + t h e f r e e r . e g i o n , a n d t ' l E H T O pt O A E S I
defineE the top of ths r.egion. This section pr€Eents the conditionB
that ce!6€ tfie setup or €1te!.stion of theEe variables
O P E R A T I N eS Y S T E MC O 1 6 5 5 5 - - Section 4
Sgsteln InitiEliuation pr.ocess
C h e n gi n g S c r . e e n l ' l o de 6
OPERATINGSYSTEf'|CO15555 -- Section 4