Atari 1050 Reference Manual

Page 1
Page 2
Page 3
DISK
OPERATING
SYSTEM
REFERENCE
MANUAL
Every
effort
has
been becauseofthe of
printed
material
Reproductionisforbidden ment,
nor
the
PRINTED IN
SINGAPORE
ongoing
subject
madetoensure
after
matter
improvement
the
dateofpublication
without
thereof,isgranted
and
the
that
this
updateofthe
specific
A
Warner
Communications
manual
accurately
computer
and
cannot accept
written
permissionofATARI,
unlessbywritten
JI,-
ATARI®
Company
documents
software
responsibility
agreement
this
and
hardware,
INC.,
with,orwritten
CI
productofthe
ATARI,
for
errorsoromissions.
Sunnyvale,
MANUAL
AND
ATARI
Computer
INC.
cannot
CA 94086.Norighttoreproduce
permission
PROGRAM
from
CONTENTS
Division.
guarantee
the
Corporation.
©1981
the
ATARI,
However,
accuracy
this
docu-
INC
Page 4
Page 5
The
ATARI®
two
levelsofusers. minology should
make
and
Disk
Operating
sequential
the
following
The
System II
new
user
operating
preparations:
(DOS
will
find
procedures.
PREFACE
II)
Manual
DOSIIexplainedinwell-defined
However,
has
the
been
new
structured
system
for
ter-
user
Read
Read
the
the
ATARI
ATARI
4OO™
81O™
or
Disk
ATARI
Manual.
Acquire BASIC)
As
the
may
then
user.
The
more sion) or has BASIC,
For
both tentionisto usersateach
Notes of
termsisavailableinAppendixJ;and
is
detailedinSection
The
experienced ferences SAY
function.
some
new
user
explore
experienced
prior
and
possibly
levels,
present
and
terminology
between
familiarity
becomes
Sections
knowledge
assembly
explanations
the
level.
5.
user
DOSIand
with
familiar
5 and 6,
user is
one
of
and
are
materialinthe
used
with
should
DOS
800™
Computer
DriveorATARI
an
ATARI
with
which
who
theATARI
other
followed
DOSIIcanbefoundinAppendix
read
AppendixIwhich
II,
especially
programming
DOS
II in
are
designed
has
worked
Personal
programming
by
graphics
clearest,
the
useofBASIC
Operator's
815™
Dual
Sections1through
for
the
with
AT ARI
Computer
languages.
whenever
most
concise
commands
explains
noting
the
additionofthe
Manual.
Disk
Drive
language
more
DOS
System, AT ARI
possible.
way
the
Operating
(preferably
4, he or she
experienced
I (9/24/79 ver-
Our
in-
possible
B; a
with
major
for
glossary
DOS
dif-
MEM.
II
Preface
v
Page 6
Page 7
CONTENTS
PREFACE
HOW
1
2
TO
USE
THIS
GETTING
Setting Adding Setting
Labeling Disk Drives Inserting a What How
Do
DOS II
STARTED
Up More
Drive
Diskette
Is a DOS Menu?
You Call
Menu
MANUAL
Disk Drives
Codes
Up
a DOS Menu?
Options
WITH
DISKETTES
The Master Diskette
DOS.SYS DUP.SYS File AUTORUN.SYS File 9
ATARI810
How
To Format a Diskette
Making
Master Diskette Creating a System Diskette
810™
Creating a System Diskette Using an ATARI
815™
Write-Protecting Your Diskettes
Labeling Diskettes Single-Density and Double-Density Diskette
Recording Which How
To Store Diskettes
File
Formatted Diskettes II
a System Diskette From Your
With
Disk Drive
Dual Disk Drive
Diskettes To Use
DOS
the AT ARI
v
XI
\I
1
1
2 2 3 3 4 4 5
9
9 9 9
9
10
12
12
13
14 15
15 16
16
3
USING
Identifying Filename Extenders and Their Use Wild
Boot Saving, Loading, and Running Programs
DOS
Cards
Errors
Your
II
Diskette
Files
Contents
19
19 19 21
22
23
vii
Page 8
SELECTING A DOS
4
Disk
A.
B. Run Cartridge
C.
D. E. F.
G.
H. I.
J.
K.
L.
M. N.
O.
Directory
Parameters
Option
Copy
File Delete Rename File Lock File Unlock Write Format Duplicate Duplication Duplication
Advanced
Using
Structureofa
Create Why
DOS File
Drives
Binary
Optional
Parameters
Binary RunatAddress
HaveaMEM.SAV
Using
Language
Using
Files
Duplicate
MENU
for
the
File
File
Diskette
Disk
Using
Using
Save
UserInformation
Parameters
Binary
Load
MEM.SAV
MEM.SAV
MEM.SAV
Save
Compound
Programs
File
Disk
a Single
Multiple
With
to
Write
to
Load
OPTION
Directory
Disk
Disk
About
Optional
File
File?
Assembly
Binary
Drive
27
27
28 29 30 32 32 35 35
35 36 37 37
38 39
39
40 41 43 44 44 45
45
46 47
viii
Contents
5
MORE
Tokenized
.
BASIC
I 10CB's Using Using
USER
Commands
LOAD SAVE
LIST ENTER
RUN
nput/Output
With
OPE N/CLOSE
INPUT/PRINT
INFORMATION
Used
and
Untokenized
Control
Input/Output
Blocks
Commands
Commands
With
DOS
Files
Commands
49
49 49 49 50 50 50 51 51 51 51 53
Page 9
Direct
Using Using Substituting
Saving
Accessing The
Accessing
Commands
the
PUT/GET
the
STATUS
Menu
With
LIST OPEN
Options
and
ATARI
and
and
AUTORUN.SYS
With
the
XIO
Loading
BASIC
ENTER
CLOSE
Damaged
the
Commands
Command
Command
Programs
Files
File
NOTE/POINT
for
DOS
and
Data
54 57 58
60
62 63
66 67 67
ADDITIONAL
6
ABOUT
AT ARI Diskettes
ATARI Disk
ATARI 815 Disk
Drive
Disk
THE DISK DRIVE SYSTEM
Operation
INFORMATION
Drive
Drive
APPENDICES
Alphabetic
A
With
B Notes and
Basic Error Messages and
C
DOS II
D
For 32K Ram System
Hexadecimal-to-Decimal Conversion Table
E
How
F
C
H
To Speed
Drive
How
To Increase User
Major
and DOS II Structure C lossary
DirectoryofBasic
Disk Operations 71
Terminology
Memory
Differences Between DOS I (9/24/79)
of
of
Map
Up
a Compound File
Terms
Used
Data
RAM
Words
With
How
To Recover
TransferstoDisk
Space
Used
DOS II
69
69 69 69 70
71
73 75
81
83
85
87
89
91 93
INDEX
ILLUSTRATIONS
1-1
Disk Drive Configurations Available
1-2 Drive Code Settings 1-3
Inserting a Diskette
1-4
The DOS II
Menu
Into
a Disk Drive
Contents
99
1
2
3 4
ix
Page 10
2-1
A Formatted Diskette
2-2
Write-Protecting a Diskette
2-3
Correct Diskettes
3-1
Structureofa Filespec
3-2
ExamplesofLegal and Illegal Filenames
3-3
DOS
Menu
Use
Wild
3-4
Boot
Errors
3-5
Sample Interest Program
4-1
Using the Disk
4-2
Using the Copy File
4-3
Using the Delete File
4-4 Using the Rename File
4-5
Using the Lock File
4-6 Using the
4-7
Using the
4-8
Using the Format Disk
4-9
Using the
Single Disk Drive
4-10
Using the
Dual or
4-11
The
4-12
Six-Byte Header Table
4-13
Using Binary Save
4-14
Using Binary SavetoSave
4-15
Converting an Existing Load-Only Filetoa
Load-and-Go File
4-16
Using the Binary Load
4-17
Using the Run at Address
4-18
Creating a
4-19
Example of
4-20
Using the
Unlock
Write
Duplicate
Duplicate
Multiple
Most
Elementary UseofBinary Save
MEM.SAV
Duplicate
for
Options
Cards
Directory
Option
Option
File
DOS File
Disk Drives
With
MEM.SAV
File
Your Disk Drive
That
Can and
Option
Option
Option
Option
Option
Option
Disk
Option
Disk
Option
for
Binary Save
Optional
Compound
Option
Option
File
Usage
Option
Cannot
With
With
Parameters
Files
10 15 16
20 20
Use
21 22 24
29 32 33 34 35 35 36 36
38
38 39 39 40 41
43 43 44 44 45
48
x
Contents
5-1
ExampleofProgram
5-2
Explanation
5-3
ExampleofOpening
5-4
Sample
5-5
Sample
5-6
Sample
5-7
Sample
5-8
Sample
5-9
Sample
5-10
Sample
5-11
Sample
5-12
Sample
Chaining
of
OPE N
INPUT/PRINT NOTE RunofNOTE POINT RunofPOINT PUT
GET
RunofPUT/GET STA TUS
Program
Program
Program Program
Statement
and
Program
Program
Program
ClosingaFile
Program
Program
Parameters
50 52 52 53
54
55 56 57 57
58 58 60
Page 11
5-13
Sample
5-14
SampleInterest
5-15
Sample Sample
5-16
5-17 Run 5-18 The I 5-19
Get
XIO
Program
Program RunofInterest ProgramtoCreate a
of
Sample
nformation
Byte
Program
Data
Stored on
5-20 An AUTORUN.SYS
Advanced
User
Program
File
Example
Data
Diskette
for
the
File
62
64 64
65
66 66
67
68
Contents
xi
Page 12
Page 13
This
manual
represents
(DOS
II). The started experienced more
with
complex
HOW
has been
one
phaseofthe
newcomertoDOS can
DOSIIwithout
user,
however,
operations.
TO
developed
can
with
second
feel
ing
quickly
USE
the
user in
versionofthe
easily
find
encumbered
find
and use
THIS
mind.
Each
AT ARt
the
information
by
extraneous
the
MANUAL
sectionofinformation
Disk
Operating
neededtoget
information.
data
requiredtoperform
System
The
FOR THE
Section1explains tary
DefinitionofDOS
Settingupthe
Explaining
Sections tingtostorage. The ting
you
FOR THE
Section diskette youtoLoading
Section
has a
these
Editor
FOR THE
Section5reviews grams followed tion6contains maybeof trieving
NEW
DOS USER
operations:
the
2 and 3 discuss and
downtowork. aretodo.
NOVICE
3 starts
files
4 is
detailed
options
cartridge
showing
byanexample
data.
your
using
and Saving
the
crossover
descriptionofeach
will
and
MORE
the
further
interesttoboth
howtouse
system
DOS
novicetoDOS
This
AND
filenames
onlybeof
the
EXPERIENCED USER
the
I/O
this
manual
Menu
explain
should
will
give
youanopportunitytobecome
MORE
involvement
hexadecimal
BASIC
commandsinactual
showing
information
EXPERIENCED USER
with
and
filename
programs.
point
between
DOS
interesttousers
commands
the
levelsofusers),
and
the
everything
read
DOS
extenders;
the
new
Menu
who
system.
used
typesofdata
about
AT ARt
along
procedures
about
through
II,
explaining
and
option
are
with
DOS
use. Each
going
Disk
with
for
your
diskettes
Sections
howtoidentify
this
section
more
experienced
and
howtouse it.
familiar
II and gives command into
Drives
details
the
1 and 2
familiar
with
each
and
about
also
parameter.
diskettes
most
elemen-
from
format­before with
introduces
the
Assembler
sample
formatisalso
storing
sit-
what
your
user, and
Some
pro-
Sec-
(which
and
of
re-
The
balanceofthe
for
the
advanced
Memory
• Errors
• Saving
maps
RAM
manual
user such as:
space
containsaglossaryofterms
and
additional
How
to Use This
information
Manual
xiii
Page 14
Page 15
1
GETTING
DOS
(pronounced
your
AT ARI® Personal
810™
Disk
you
to:
• Store
If derstand ferencesinloading
mand
have 9/24/79
programsondiskette
Retrieve
Create
Make
Delete
Load
Move
you
programs
and
copiesofdisk
old
and save
filestoand
have
and easytouse. If
parameters.
more
versionofDOS I (see
doss) is an
Drive.
The
addtodata
files
fromadiskette
binary
never
used a
available
STARTED
acronym
Computer
DOS consistsofcomprehensive
from
diskette
files
neededbyprograms
files
files
(for
from
memory,
DOS
before,
you
DOS
II and changestoboth
These changes
user
memory
Appendix
for
System
the
advanced
the
screen,
you
previously
make
space and
H).
Disk
cannot
will
used
DOSIImore
WITH
Operating
communicate
user)
diskette,
find
the
the
AT ARI
the
menu
greater
DOS
System.
utility
and
AT ARI
DOSI,you
advantageous
flexibil
Without
with
routines
printer.
DOSIIsimpletoun-
options
ity
your
will
and
because
than
that
their
with
a DOS,
AT ARI
allow
find
com-
II
dif-
you
the
SETTING UP
ADDING MORE
DISK
DRIVES
start,
you
must
attach
To
Drivetoyour
sure
your
computer
instructions
AT ARI
on
setting
your
400™
has at least
up
your
A TARI 800 Operator's Manual.
Disk
Drive
and
the
AT ARI 810
System are
Should puter are
two disk sole. Figure 1-1 shows
containedinthe
you
wanttoattach
system,
drivetoDrive
outlets
youdoso by
(labeled
1. Then you
"daisy-chaining."Inthe
I/O
attach
someofthe
ATARI
or AT ARI
16K
The
respective
additional
PERIPHERAL);
810 800™
Random
equipment,
procedures
Disk
Drive
Disk
AT ARI
the
other
different
Disk
DriveorATARI
Personal
Access
please
for
attaching
to
your
Drive
Operator's
Disk
backofeach
attach
cord
the
from
disk
Computer
Memory
refertoyour
Drivestoyour
Drive1to
drive
(RAM). For
the
AT ARI Personal
Manuals.
AT ARI
I/O
cord
from the
configurations
Getting
815™
Dual
System,
making
complete
A TARI 400 or
AT ARI 815
Computer
personal
Disk
your
computer
available.
Started
with
DOS
Disk
Dual
com-
Drive
second
con-
II 1
Page 16
lHREE
AlARI
DISK DRIVES
810
Figure 1-1
lWO
AlARI815
DUAL DISK DRIVES
Disk
Drive
Configurations
฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀
I
i
c--
. .. ... '
f'Hn
:L
---II!i
,.,..mm,WVI"II'ffi'fi'fmfff««N"",
..-r
"
.o.
\ .
i
:m:.j
\1
AlARI815
and
DISK DRIVES
Available
AlARI
810
SETTING
DRIVE CODES
Lookingatthe tabs. The drive's of tiontoset Dual importanttomake
designation.
your
Disk
••
•••••••
I
ORIVE
backofyour
white
and
AT ARI 815
the
drive
Drive,
I/O
CONNECTORS
( ,
•••
COOE
ATARI
black
tabs RefertoFigure 1-2a Dual
Disk
code
setting
the
top
driveisalways
sure
that
••••••
1I
NOS.
•••
(aJ A
810
mustbemoved
Drive
has a
(see Figure 1-2b). If
each
drive
•••
TAR/
,,._---
[----I
Disk
Drivels),
for
the
dial
you
setto1 and
has a
separate
810
Disk
••
•••••••
_-------'
on
proper
must
you
@
Drive
I/O
CONNECTORS
•••
you
will
each
drive
drive
rotatetothe have
the
bottom
drive
,
I[
see a
hole
accordingtothat
code
setting. The
proper
only
one
drive
setto2.Itis
code
setting.
ORIVE
COOE
o
••••••
•••
NO.
NO.:I
-----..,
•••
with
two
back
posi-
AT ARI 815
NO.
1
NO."
NO.
4
I]
2
Getting
Started
with
DOS'
(b]
ATAR/815
Figure 1-2
I
Drive
Dual
Disk
Code
Drive
Settings
Page 17
LABELING
DISK
DRIVES
YOUR
Once
you
have propriate Itisimperative Drive
numbersoyou
1.
properly
that
your
set
the
drive
will
not
makeamistake
MasterorSystem
codes, label each disk
when
using
Diskette
ALWAYS be
drive
disk
drive
placedinDisk
with
its ap-
functions.
INSERTING A DISKETTE
Inserting a cedure. If rors
Turnonthe follows:
1.
2.
diskette
the
during
Remove
Caution:
any exposed surfacesofthe capabilities. center envelope.
Hold arrowonthe
if note is
DOS
disk
hole.
the
your
diskette
that
automatically
into
disketteisimproperly
loading
drivels), and
the
diskette
Hold
the
DO
DO
diskettesothe
label is
has a
your
Master
an ATARI Disk
procedures, and can also
wait
from
its
diskette
NOT
NOT
write-protectedatthe
ONLY
diskette,
hold
the
try
to
labeled
pointing
write-protect
Diskette
Drive
positioned,itcan cause
for
the
BUSY
protective
by its
as this
diskettebyplacing
remove
side is up,
toward
notch,
does
not
paper
black,
the
the
have a
factory.
disk
is a simple,
damage
lighttogo
sleeve.
sealed
will
impairordestroy
diskette
with
the
drive
door
this
should
write-protect
but
very
important
boot
(starting-up) er-
the
diskette.
off.
Insert
the
envelope.
your
from
label
be on
DO
NOT
its
fingers
toward
(see Figure 1-3). Also,
its
your notch
through
black,
you, and
pro-
diskette
touch
read/write
sealed
left.
Please
because
as
the
the
it
3.
Open Disk
4. Close
the
Drive)
the
Figure 1-3 Inserting a
doortothe
and
disk
drive
gently
disk
but
door.
drive
firmly
Diskette
(upper
driveifyou
slideinthe
Into
diskette.
a Disk
Drive
have an ATARI 815
Getting
Started
with
D05
Dual
II 3
Page 18
WHAT
A DOS
MENU?
IS
The
DOS
Menuisloaded always selectionofapplicationsispresentedtoyou your selected
The
128
bytes screen as
inserted
selection
applicationisnow
DOSIIMenu bytes
per
per
sector)
explained
Single
Density
in
the
upper
Double
2. OD in
Density
the
into
by
typing
selections
sector)
are
(Usedonthe
right
(Usedonthe
upper
into
your
Disk
Drive1.The
the
appropriate
available
for
and
the
ATARI
identical.
below:
cornerofyour
right
The
ATARI
ATARI
cornerofyour
computer
DOS
for
both
the
815
only
differenceisthe
810
screen.
815
use.
screen.
from
your
Master
Menuissimilartoa
via
your
television
code
letter
and
ATARI
Disk
Dual
810
Dual
Disk
Drive):
TheSstands
Disk
TheDstands
Disk Drive
version
You
for
Drive):
will
Diskette,
restaurant
screen. You
pressing
Drive
(single
(double
single
You
density-256
designationonthe
see a
Version2.OS
density
will
see a
for
double
which menu;
make
Your
density-
Version
density
is
a
HOW DO
CALL
A DOS
UP
MENU?
YOU
After
you
have
disk
drive,
and
computer
With
When
1.
2.
memoryasfollows:
a Cartridge Installed
you
turn
The
BUSY
NOT
attempttoremove
theATARI
DOS
II is
prompt
Type
Figure
will
DOS
1-4).
your
your
your
light
BASIC
loaded.
be
EDIT.)
and
press ,,,,.
This
television
disk
computer
on
cartridge,aREADY
(If
the
drive
disk
you This
set
turned
turned
on:
drive
the
diskette
have completes
.'
The
the
on,
on,
you
will
while
prompt
inserted
the
DOSIIMenu
second
partofthe
your
go on
the
first
Master
are
readytoload
during
this
light
will
Assembler
partofthe
will
Diskette
the
is on.Ifyou
appearonthe
displayonthe
loading
inserted
loading
Editor
loading
procedure.
into
DOSIIinto
process
have
inserted
screen
cartridge,
procedure
screen
the the
DO
once
the
(see
4
Getting
Started
with
DOS
Figure 1-4 The DOS 1/
II
Menu
Page 19
Withacartridge MENT
With
When action. NOT displayed
SUBSYSTEM
PACKAGE
After screen ing"
and
No
Cartridge
you
turn
The
attempttoremove
automatically
you
makeacode
requesting
menu.
BUSY
The
present,
and
the
DOS
Installed
your
computer
lightonthe
information
prompt
SELECT
the
first
MINI-DOS.
Menu.
on,
disk
the
diskette
once
DOS
letter
selection,aprompt
from
message
ITEM
partofthe
The
DOSIIwill
drive
will
while
II is
you.
that
appears
OR
RETURN FOR
second
go on
this
loaded.
This
load
bringsinthe
part
load
during
light
is on.
message
capability
most
frequently
bringsinthe
entirely
MENU
without
the
loading
The
DOS
will
makesita
reads:
FILE
MANAGE-
DISK
UTILITY
user
process.
Menu
display
"self-prompt-
will
on
inter-
DO
be
the
THE DOS II MENU OPTIONS
This means
Typeinoneofthe or
• Press
Below
advised
are detailed
DISK
This
Cil:!l1il:ilJ
sectors
RUN
(Can youtoreturn (the
COpy
this
Use from same file.
the
฀฀฀฀฀฀฀฀
are
the
NOTtouse these
explanation
DIRECTORY
containsalistofall
TWICE,
allocatedtothe
CARTRIDGE
ONLY
be used
left
cartridge
FILE
option
one
diskettetoanother.
information
system
DOS II
controlofyour
when
waits
alphabetic
which
redisplays
Menu
appears in
the
you
can
display
file,
withacartridge
slotinthe
you
on
the
same
have
for
youtodo
letters
the
options
options
Section
files
on a
the
and
the
installedinthe
systemtothe
AT ARI 800 Personal
twoormore
Also
use
diskettebyassigning a
oneofthe
and press
DOS
Menu.
and a
brief
until
you
4).
diskette.Ifyou
filenames,
numberoffree
cartridge
disk
this
optionifyou
following:
mi'i.!Xtrlto
explanationofwhat
understand
extenders
computer
Computer
drives
bringupyour
them
select
option
(if
any),
sectors
insertedinthe
and
want
second
still
console.) This
System).
you
wanttocopy
two
nametothe
available.
selection,
they
do.
thoroughly
A and press
the
number
cartridge
files
with
You
(a
of
allows
slot
files
the
original
DELETE FILE
option
This
space.
lets
you
erase a
file
from
the
diskette,
increasing
your
Getting
available
Started
with
sector
DOS II 5
Page 20
RENAME
Use
LOCK
This
You
FILE:
this
option
when
FILE
option
will
prevents
stillbeabletoread
directoryisdisplayed,
locked.
you
wanttochange
you
from
the
an asterisk is
the
changing,
file,
renaming,oraccidentally
but
will
placedinfrontofthe
nameofa
file.
erasing
notbeabletowritetoit.
file
nametoindicate
the
When
file.
the it is
UNLOCK
This
FILE
removes
changestothe
WRITE
Use Master
FORMAT
This write
diskette
matted
NEW
this
optiontoreplaceoradd
Diskette
DISKETTE
option
is usedtoformatablank
anything
before
Diskettes
DUPLICATE
This is diskette
the
option
(for
Diskettes).
the
asterisk
file,
frominfrontofthe
rename
it,ordelete
DOS
ontoadisketteinany
onto
it. Be sure
formatting.
This
(CX8111).
DISK
you
choose
more
detailed
the
DOS
disk
diskette,
youdonot
optionisnot
when
you
information,
file
name
and
allows
it.
files
(DOS.
SYS
and DUP. SYS) on
drive.
which
is necessary
have
any
files
you
wanttokeeponthe
normally
used on
wanttocreateanexact
refer
to
Section
before
ATARI
duplicate
2 on
youtomake
your
you
can
810 For-
of
Backing
Up
a
6
Cetting
Started
with
DOS II
DUPLICATE
option
This
only
haveasingle
CREATE
This
option
FILE
enables
MEM.SAV
allows graminRAMtobe tion,
see CREATE
on
each
new
diskette familiar no memory there
useful
is no
with
the
function.
may
warrant
programinRAM
youtocopyafile
disk
drive.
(See
the
youtocreate
stored
while
available
the
MEM.SAVinSection
you
intendtouse as a System
DOS,
you
may
find
Hence,
the
inconvenienceofwaiting
deletingitfrom
that
you
from
one
diskettetoanother,
sectiononDuplicating
sector
space on
DUP. SYS
4.)
fileisbeing
We
advise
youtocreateaMEM.SAV
Diskette.Asyou
there
are cases
the
diskette.
whereaMEM.SAV
An
wanttoprotect
the
used. (For
for
example
when
Files
diskette
the
typing
evenifyou
for
more
detail.)
for
the
more
informa-
become
file
filetoload
would
be
in DOS.
pro-
file
more
serves
into
when
Page 21
BINARY SAVE*
With
this
option
diskette.
(Manipulates
you
can save
the
contentsofspecified
assembly language programs.)
memory
locations
on a
BINARY
This tionofBINARY
LOAD*
option
lets
you
retrieveanobject
SAVE.
(Manipulates
RUN AT ADDRESS*
With
this
gram
option
after
you
can
it has been
enter
loaded
assembly language programs.)
file
fromadiskette.Itis
assembly language programs.)
the
hexadecimal
into
RAM
starting
with
a BI NARY
the
addressofan
LOAD.
reverse
object
(Executes
func-
pro-
*Note:
vanced
BINARY SAVE, BINARY
userofDOS II and are
LOAD,
and RUN AT ADDRESS are
explainedingreater
detail
in Section 4.
Getting
Started
for
with
the
ad-
DOS II 7
Page 22
Page 23
2
DISKETTES
THE MASTER
DISKETTE
The
Master include disk
drive
operating
Each
DOS.SYS File
DOS.SYS is a resident resident the
FMS: DELETE FILE, RENAME FILE,
DISK.
DUP.SYS File
This is NOT these DOS CARTRIDGE, the
DUP.SYS
Note: the
lower However, diskette, When reload
Diskette
all
the
system
function
system,
Master
portionofthe
portionofDUP.SYS
the
Disk
controlledbythe
subfunctions
Normally
program
when
the
you
are
your
program
with
you
Diskette
file
containing
Utility
COpy
FILE,
file
into
when
you
mini-DOS
finished
contains
file
management
your
cannot
contains
the
DUP.SYS
Package
FMS.
Whenever
(BINARY
DUPLICATE
RAMbytyping
you
bring
area
occupied
createaMEM.SAV
saves any
using
automatically.
the
disk
operating
and
utility
AT ARI Personal
access
contains
the
disk
the
following
File
Management
(frequently
the
that
contains
LOAD,
DOS and pressing
the
DUP.SYS
by BASIC
datainRAMtodiskette
the
DUP.SYS
files:
referredtoas
subfunctions
LOCK
the
you
wanttosee
BINARY
FILE, and DUPLICATE DISK),
file
functions,
system programs. These
routines
Computer
drive.
Subsystem (FMS) and
FILE,
DOS
SAVE, RUN AT ADDRESS, RUN
necessarytomake
System.
"mini-DOS").
that
can be
UNLOCK
Menu
and DOS
the
DOS
Withoutadisk
controlled
FILE, and
subfunctions
Menuorperform
you
IM",*I.
file
into
RAM,itwrites
or
assembly
(see
sectiononMEM.SAV)
before
MEM.SAV
language
over
loading
allows
programs
your
the
RAM-
The
RAM-
FORMAT
must
load
data
programs.
on
your
DUP.SYS.
you
by
in
to
ATARI810
FORMATTED DISKETTES II
AUTORUN.SYS
This
file
is usedtopoll Personal this
In
withanATARI
filesorprogram means Figure 2-1) so makesitpossible sible is
providedsoyou
Computer
manual
additiontothe
with
the
diskette
diskettes
for
that
File
(check)
System andtorun
more
detail
Master
810
data
for
can
Diskette
Formatted
on it, it has been
was
divided
it has an
you
to store and
formattedonyour
makeabackup
the
peripheral
on AUTORUN.SYS).
II (CX8104),
Diskette
into
improved
retrieve
AT ARI 810
units
machine
II (CX8111). preformattedatthe tracks
sector
layout.
information
copyofyour
(if
any)
code
programs
your
ATARI
Although
and sectors
This
Disk
Drive.
Master
attachedtoyour
(see
Section4of
810
Disk
Drive
this
diskette
factory.
before
improved
more
This Diskette.
Preformatting
packaging
sector
rapidly
"empty"
This
than
ATARI
comes has no
layout
is pos-
diskette
backup
Diskettes
(see
9
Page 24
ATARI LABEL
..
WRITE PROTECT
.-
NOTCH
copy,
called
safetyofyour
If,atany DOS that reason sector
time,
Menu
selection
allows
(perhapstotest
layout.
฀฀฀฀฀฀฀฀
READ-WRITE AREA
TRACK (ONE COMPLETE
REVOLUTION)
A SECTOR (ONE PIECE OF A TRACK)
Figure 2-1 A Formatted Diskette
a System
original
you
the
Diskette,isthe
Master
decidetoerase
D. DELETE FILE(S). This
diskettetorun faster.
for
Diskette
possible
the
bad
one
you
will
(see
Making
files
fromapreformatted
will
Should
sectors),itwillnolonger
you
TIMING
THE
HOLE
READING MOVESINAND FROM
THE
OUTER
TO THE CENTER.
actually
save
work
a System
the
improved
reformat
with,
Diskette).
diskette,
the
have
HEAD
OUT
EDGE
ensuring
sector
diskette
the
the
use
the
layout
for
any
improved
HOW
TO
FORMAT
A DISKETTE
10
Diskettes
Note:
You can
tory
with yourself store
programs
have
the
You
will are using an diskettesoDOSIIwill record magnetically
Once
you which storage
per
are
track
also
use
the
ATARI
using
the
FORMAT
on
them
advantageofthe
needtoformat
ATARI
that
has
visible
inscribed
have
formattedadiskette,itwill
divided
capacitybymultiplying
(18),
into
which
blank
diskettes
810
Disk
Drive.
DISK
menu
(see
HowtoFormataDiskette).
improved
any
blank
810
Formatted
know
where
spiraling
grooves
18 pie-shaped wedges
gives
you
speedofthe
diskette
Diskette
informationislocated.
grooves
that
are
the
numberoftracks
720 sectors.
that
have
You
will
option
before
II (CX8111)).
imprinted
not
visible.
contain40of
However,13of
not
been
preformattedatthe
havetoformat
before
you
preformatted
you
can
onto
called
sectors. You
(40) by
However,
Formatting
these
the
these
diskettes
can
write
DOS
FILE or
you
will
diskettes.
write
on it (unless
organizes
Unlikeaphonograph
it,
the
diskette
concentric
the
numberofsectors
720 sectors are used
tracks,
ascertain
fac-
not
you
a
has
the
Page 25
by
DOSIIand
down
is as
follows:
3
sectors
8
sectors
1
sector
1
Sector
13
Total
As a
result,
The
ATARI
each
sectorofthe Management 88,375
To Thisisnot you
are
bytes.
formatadiskette,
necessaryifyou
are
usinganAT
usinganATARI
are
not
used used
used
720 is
you
actually
810, a
Subsystem,
availabletoyou
for
booting
for
the
Directory
for
the
Volume
not
addressable
haveatotalof707
single-density
diskette.
you
ARI
815
Because3bytes
the
must
are
810
Disk
Dual
for
writing
the
system
TableofContents
disk
drive,
can
total
storage
use
theI.FORMAT
usingATAR I 810
DriveasDrive
Disk
DriveasDrives1and
capacity
files
and
sectorstowhich
store
128
bytesofinformation
per
sector
are
per
single-density
DISK
optiononthe
Formatted
1, see
instructions
2, see
data.
The
you
allocated
Diskettes
(A)
instructions
actual
may
write
for
diskette
DOS
II (CX8111).
below.Ifyou
break-
data.
the
Menu.
(B).
on
File
is
If
Using the
(A)
1.
Turn
2.
Make
Figure
3.
Insert
4.
Turn
5.
When tridge), pearonthe the
6.
TypeIfor
7.
When Master
door,
8.
When
press I;\;ii@'. diskette.
9.
When the
AlARI
the
disk
sure
1-2
the
the
computer
the
type
screen
the
Diskette
type1and
the
the
formattingiscomplete,
810 Disk Drive:
drive
on.
the
switch
for
drive
code
ATARI
READY
810
console
prompt
DOS
and
screen.
automatically.)
the
prompt
prompt
prompt
(Ifnocartridgeisinserted,
FORMAT
message
from
press
message TYPE Y
The
BUSY
message SELECT
Wait
on
Master
press l;liiiWi.
the
'il;iij;llj.
for
the
backofthe
settings).
Diskette
on.
appears
option
WHICH
disk
light
and
the
BUSY
DOS
will
(if
you
Afterafew
and
press I;!:,ji@i.
DRIVE
drive
and
TO
will
come
ITEM
you
can
lighttogo
disk
drive
II (CX8104)
load
into
have
inserted
seconds
the
TO
FORMAT
insertaBLANK
FORMAT
on
and
OR
RETURN
write
filestothat
off.
is settoNO.1
and
close
the
the
computer
the
ATARI
the
DOS
DOS
Menu
will
appears,
diskette.
DISK1appears,
the
system
FOR
diskette.
will
MENU
(refer
drive
door.
memory.
BASIC
Menu
will
appear
remove
Close
typeYand format
appears,
to
car-
ap-
on
the the
the
If
you any you
(8)
Using the
1.
have
drive.
However,
can
respondtothe
Turn
the
twoormoreATARI
you
must
prompt
AlARI
disk
815
Dual
drive(s) on.
810
Disk
know
the
WHICH
Disk Drive:
Wait
for
Drives, drive
DRIVE
the
code
BUSY
you
can
settingofthe
TO
FORMAT.
lighttogo
formatablank
drive
off.
diskette
you
use, so
Diskettes
on
11
Page 26
MAKING
SYSTEM DISKETTE FROM
YOUR MASTER DISKETTE
2.
Make
sure
the
switchonthe
Figure 1-2
3. I
nsert
drive
4.
Turn
5.
When tridge), appearonthe the
6.
TypeIfor
7.
When blank
8.
When press disketteinDrive
When
9. the
The
A
first This is duplicateofyour copy),
You you
donetoprotect
andisthe
create have.
for
drive
code
the
AT ARI 815
door.
the
computer
the
READY
type
DOS and press
screen.
screen
formattingiscomplete,
automatically.)
the
the
prompt
diskette
the
prompt
฀฀฀฀฀฀฀
the
prompt
disk
operation
the
System
FORMAT
into
The BUSY
Master
one
Master
console
prompt
(Ifnocartridge
message
Drive2,close
message TYPE Y
2.
message SELECT
you
your
Disketteisreferredtoas
you
will
Disketteinoneoftwo
backofthe
settings).
Diskette
on.
DOS
appears
(if
mwml.
option
needtoperformisduplicating
WHICH
light
and
Master
normally
and press
the
TO
will
come
you
Diskette
usetoload
disk
II (CX8201)
will
load
you
have
Afterafew
is inserted,
';jJiiJmI.
DRIVE
ITEM
can
door,
FORMAT
on
OR
write
from
ways,
TO
type
drive
into
into
the
inserted
seconds,
the
DOS
FORMAT
2, and press
DISK
and
the
RETURN FOR filestothat
any
inadvertent
the
System
DOS
dependingonwhich
is set
properly
Drive
1 and
computer
theATARI BASIC car-
the
Menu
appears,
DOS
will
(refer
close
memory.
Menu
appear
place
liliWiIfi.
2 appears,
system
your
into
RAM.
diskette.
Diskette
will
MENU
Master
damage.
type format
appears,
Diskette.
(working
disk
to
the
will
on
the
Y and
the
The
drive
12
Diskettes
CREATING
1.
Turn
ight)togo
I
2.
Remove
Insert
3.
4.
Turn
5.
Assuming READY
sertedinthe
6.
Remove
drive.
• An
•A
•A
A SYSTEM DISKETTE
the
television
the
the
Master
the
computer
you
prompt
the
This
ATARI
diskette
diskette
off.
empty
set and
Master
console,
Master
810
you
you
Diskette
Diskette
console
have a BASIC
message.
the
Diskette
diskette
Formatted
have
have
WITH
disk
drive
from
into
the
on.
cartridge
Type
DOS and press
DOS
Menu
and
can be
Diskette
previously
reformatted
THE
ATARI
on and
its
protective
disk
drive
insertedinthe
810
wait
and
l.lIin!1i1l
will
appearonthe
insertaformatted
oneofthe
II (CX8111)
formatted
using
following:
using DOS II
DOS
II
DISK
for
paper
close
DRIVE
the
BUSY
sleeve.
the
console,
(If
NO
screen
diskette
light
(top
drive
door.
you
will
cartridge
automatically.)
into
the
red
see a
is in-
disk
Page 27
7.
Type
8.
When and press
9.
When Y and press
H and press
the
prompt
฀฀฀฀฀฀฀฀฀
the
prompt
ImmtiOJ.
mmtlfor
message
the
WRITE
DOS
DRIVETOWRITE
message TYPE YTOWRITE
FILES
option.
DOS
FILES TO? appears,
DOSTODRIVE
1 appears,
type
type
1
10. The message
When
the
11. the
prompt
Master
Diskette.
Note:Atthis
subsectiononMEM.SAV
numberofsectors on
dent
RAM
program
file
(see
section
12.
Type
N and press
13.
When
the
prompt
and press
14.
When your
If
you
have diskette However, answer
the
CREATING
1.
Turnonthe of
the
฀฀฀฀฀฀
the
prompt
System
twoormore
into
any
you
must
prompt,
A SYSTEM DISKETTE
drive
labeledasDrive
WRITING
message SELECT
Diskette
point
has been
we
the
while
explaining
mm3to
message TYPE Y
message SELECT
Diskette
ATARI
drive
before
remember
DRIVE
AT ARI 815
has been set
1 and
NEW
strongly
laterinthis
System
you
the
createaMEM.
will
haveaMEM.
choosing
which
TO
WRITE
USING
Dual
Disk
properly
the
lower
DOS
FILES
will
ITEM
dupl
icated
recommend
section).
Diskette
are using
DUP.SYS
TO
(or
the
function).
CREATE
ITEM
SAV
810
Disk
Drives,
Menu
drive
you
DOS
FILES TO?, in step 8
THE
ATARI815
Drive.
Make
(see Figure 1-2). The
driveasDrive
appearonthe
OR RETURN FOR
and
you
have
you
createaMEM.SAV
MEM.SAV
any
diskette)
DOS
functions;
SAV
fileonyour
MEM.
OR RETURN
file
you
Option
are using so
allocatesaspecified
SAV appears,
TO
on it.
can
insert
H.
WRITE
you
DUAL
sure
the
drive
upper
2.
screen.
MENU
created
for
storing
i.e.,
the
System
MENU
the
DOS FILES.
will
above.
DISK
DRIVE
codeonthe
drive
appears,
a System
file
(see
the
resi-
DUP.SYS
Diskette.
type
appears,
formatted
be
able
back
should
Y
to
be
Remove
2.
nsert
3. I
4.
Turn
Assuming
5. message on serted in screen.)
6.
When type
7.
When matted
the
Master
the
Master
the
computer
you
have
the
the
the
prompt
H and press
the
prompt
diskette
Diskette
Diskette
console
inserted
screen.
console,
Type
the
message SELECT
to
message
into
Drive
from
its
protective
into
Drive
1 and
on.
a BASIC
cartridge,
DOS and press
DOS
Menu
will
ITEM
OR RETURN FOR
select
the
WRITE
DRIVETOWRITE
2 and
close
the
paper
sleeve.
close
the
drive
you
will
see a READY
(If
appear
DOS
automatically
FILES
option.
FILESTOappears,
drive
door.
door.
no
MENU
Type
cartridge
prompt
is in-
on
the
appears,
placeafor-
2 and press
DISkettes
13
Page 28
8.
When
Y
and
9.
The
When
10. ME NU appears,
the
prompt
press
message
the
DOS
message TYPE YTOWRITE
'iJiuhU"
WRITING
Menu
you
and
have
NEW
prompt
created
DOS
DOSTODRIYE
FILES
appearsonthe
message SELECT
a System
Diskette.
2 appears,
screen.
ITEM
OR RETURN FOR
type
Note:Atthis subsection specified more
11.
Remove Drive fully
Type
12.
13.
When
and
When
14. your
Because practicaltoput
1.
Boot
2.
Replace
REMEMBER,ifyou
any
program
Diskette
numberofsectors
roomtouse
your
1. Place
(see
sectiononstoring
N and press
the
prompt
press 'i"iij;l:I.
the
prompt
System
DOSIIoccupies
DOS
with
a System
the
diskette
before
you
point
we
strongly
on
MEM.
newly
your
Diskette
lion
System
turn
willbeabletoreboot
SAY
the
DUP. SYS
created
Master
i;\ijii@lto
message TYPE Y
message SELECT
10K
Diskette
your
that
will
haveaMEM.
bytesofthe
every
Diskette
system
does
Diskette
diskette.
recommend
later
in
this
for
storing
System
diskettes).
createaMEM.
with
not
files
the
off
have
the
(see
Diskette
into
TO
ITEM
available
Load
program
for
the
you
createaMEM. section). RAM
sectiononDUP.
its
protective
SAY
CREATE
OR RETURN FOR
SAY
the
any
reason,
DOS
computer.
MEM.
resident
from
Drive2and
fileonyour
MEM.
file
on it.
space
for
diskettesinthe
diskette
you
lion
it
SAY
program,
SYS).
sleeve and
System
SAY appears,
MENU
data
storage,itis
following
you
wishtouse.
will
needtoremove
and
insert
SAY
file
allocates
giving
insert it
store
Diskette.
appears,
the
(see
you
into
care-
type
not
order:
System
a
Y
WRITE-
PROTECTING
YOUR
14
DISKETTES
Diskettes
Write-protectingissimplyamethodofpreventing
over
valuable
You
will diskette protected. the
diskette
Normally, purposeofthe gramtothe you
wanttosave on
HOW
TO WRITE-PROTECT
A sheet write-protect
information
notice
that
jacketsoitisimpossibletowrite
Blank
and
jacket
enabling
you
would
MEM.
diskette
you
the
DOSIIMaster
preformatted
youtowritetothe
not
write-protect
SAY
file,
when
necessary. For
another
may
not
Diskette
diskettesdohave
preventing
diskette,
which
VALUABLE
of
large
file
tabs
identification
are
includedineach
labels
wanttolose
has no
files
on it;
a System
you
from
this
reason,
you
DISKETTES
and a
boxofAT ARI
you
from
fromadiskette.
notchonthe
therefore,itis
the
notchesonthe
diskette.
Diskette,asthis
writing
can
second
the
you
may
write-protect.
sheetofsmall
diskettes.
inadvertently
left
sideofthe
already
left
will
defeat
RAM-resident
wishtoput
writing
write-
side
of
the
pro-
the
files
adhesive
Page 29
------
WRITE-PROTECT
NOTCH
LABELING DISKETTES
SINGLE-DENSITY AND DOUBLE­DENSITY DISKETTE RECORDING
Figure 2-2
Write-protectingisaccomplishedbysimply from
the
sheet
and
foldingitover
2-2)
If
you
are
using
the
AT ARI 815 ettesbyusing when
on
files.
When
to
turn
Should
message
Use
the
label
firsttoavoid
right
cornerofthe
The
principle
Dual
Disk
Informationistransferredtothe disk (single 128
diskette
the
write-protect
(glows
the
you
displayed
self-adhesive
driveinblocksof128
bytes
red),
younolonger
write-protect
try
writing
on
damaging
diskette
difference
Driveisthe
ATARI810
density),
fills
and
one
prevents
need
switch
toawrite-protected
the
labelstoidentify
between
way
each
sectoronthe
Write-ProtectingaDiskette
the
notchonthe
Dual
Disk
(WRIT
you
screen.
the
envelope
the
bytes
block
PROT)
from
the
write-protect
off
diskette,
the
ATARI
dataisencoded
of
removinganadhesive
edgeofthe
Drive,
you
may
switchonthe
adding,
the
and
changing,
condition,
diskette,
data
then
810
I
nformationistransferredtothe disk (double of
256
diskette.
you
will
on
each
attach
these
Disk
Drive
for
storageondiskettes.
ATARI815
driveinblocksof256
density),
bytes
fills
write-protect
diskette
also
protect
drive
unit
renaming,ordeleting
however,
see an ERROR-144
diskette
labelsinthe
and
the
and
each
one
sectoronthe
(see
Figure
your
disk-
This
switch,
REMEMBER
Write
on
upper
ATARI
bytes
block
tab
the
815
DOS
II is
•2OSfor
• 2 OD
for
availableintwo
recording
recording
dataonthe
on
versions
the
double-density
single-density
AT
ATARI
ARI
815
810
Dual
Disk
Disk
Drive
Drive
Page 30
WHICH
DISKETTES TO
USE?
To
for
II
perform
your
disk
disk Figure 2-3 shows have:
operations
drive(s) and
which
diskettes
successfully,
the
correct
you
you
blank
should
must
have
the diskettes use
for
dependingonthe
correct
data
versionofDOS
storage. The
disk
drive(s)
chart
in
you
DISK
AlARI810
AlARI815
DRIVE
ATARI
810
Disk
Drive(s)
or
ATARI'815
Dual
Disk
Drive
or
CombinationofAT ARI 810 and 815
CX8104 CX8111
AlARI810
MASTER FORMATTED
DISKETTE DISKETTE
AlARI810
X X X
Figure 2-3
Correct
Diskettes
CX8100
AlARI810
BLANK
DISKETTE
for
Your Disk
Disk
Drives
AlAR1810/815
DISKETTE
Drive
CX8202
BLANK
X
X X
CX8201
AlARI815
MASlER
DISKETTE.
HOW
TO
DISKETTES
Diskettes
16
STORE
Figure 2-3 shows
(single-density
from
ATAR I 810
ATARI
or
If
you Diskette Diskettes ettes your
If
you
Personal in
Drive1of
ferent
Since
tions
ALWAYS
• Store
on
810
have
oneormore
(CX8201)
(CX8202)
are
totally
Master
have
Diskette
both
Computer
the
drive
number
your
diskettes
will
help
keep
them
verticallyasyou
topofanother.
that
you
can
versionofDOS
Blank
Diskettes
Formatted
Diskettes
ATARI
(double-density
that
were
packed
blank,
you
will
(see
sectiononformatting).
ATARI
810 and
System, use AT ARI 815
AT ARI 815
Dual
setting. Set
are
flexible,
keep
your
diskettesingood
the
diskettesintheir
only
use
the
AT ARI 810
II)
with
your
ATARI
810
(CX8100), AT AR I 810/815
II (CX8111)
815
Dual
Disk
for
Drives, use
versionofDOS II), and
with
your
disk
havetoformat
ATARI
815
each
Disk
Master
Disk
Drive.
MAKE
the
AT ARI 810
they
are
subjecttodamage.
Disk
condition:
would
protective
properly
paper
store
Master Disk
Diskette
Drive.
Blank
program
and
the
the
AT ARI 810/815
drive.
Since
before
Drives
Diskette
usingitto
attachedtoyour
(CX8201), and
SURE EACH
DriveasDrive
The
sleeves
records;donot
II (CX8104)
You
can
Diskettes
data
storage.
AT ARI 815
the
CX8202 disk-
DRIVE
3.
following
when
not
stack
choose
(CX8202)
Master
Blank
duplicate
ATARI
insert
has a
dif-
sugges-
in use.
them
one
it
Page 31
• Store sible
• Store
Your
diskettes
and,
with
the
diskettes
AT LEAST 12 inches
sourceofmagnetic
the
diskettes
are an
proper
care,
away
important
will
fields.
from
give
and
you
any
valuable
many
from
direct
sourceofheat.
hours
your
television
partofyour
0'':
dependable
setorany
ATARI
computer
use and
other
pos-
system
enjoyment.
Diskettes
17
Page 32
Page 33
3
USING DOS II
IDENTIFYING YOUR DISKETTE FILES
section
This files.
Files are
PROG
specific
DATA
the
instructions.
file
capableofbeing
Just as to
access it. The
for
short). Filespecs (see Figure 3-1) wrong appearonthe
The rules
• The
The and
The
The filename.
The for
and
those
that
classified
RAM
FILE S. These are setsofinstructions
tasks.
FI LES. These
you
call
name,
for
maximum
only
characters
the
numbers0through
first
character
characters*and?
(See
filenames
DOS
II.
into
two
usually
For instance, a
updatedatany
a person by name, so
filenameonthe
just
Iike a person, it
television
filenames
lengthofa
the
DOS.SYS, DUP.SYS,
screen.
are:
that
in a
CANNOT
sectiononWild
follow
types:
contain
can be used in a
filenameisALWAYSanalphabetic
teach
you
the
information
permanent
must
disketteispartofthe
have
won't
filenameiseight
9.
be used as
data
time.
you
six
key
answer; instead,
Cards
for
AUTORUN.SYS,
howtocreate
that
tell
usedbya
file
may
callafile
file
elements.Ifyou
you
characters.
filename
partofa
are
explanation.)
and
the
be a
by a
specification
the
name
MEM.SAV
and
work
with
computertoperform
program
name
will
lettersAthrough
character.
when
file,
but
name
and
address
when
you
(or
filespec
callafile
see an ERROR-170
establishing
by its
are reserved
your
not
want
Z,
a
FILENAME
EXTENDERS
AND
THEIR
USE
You can
file.
You can use
a
SYS system
BAS BASIC
OAT MUS ASM
OBJ
SRC
LST
SVE
addathree-character
any
legal
files
program
data
fi les AT ARI assembly binary source files files
load
createdbythe
createdbythe
Music
files
files
Composer!
language
files
extendertoa
combination
files
files
LIST
command
SAVE
command
filenametoindicate
of
letters
and
numbers,
the
typeofdata
for
USing DOS II 19
in
example:
Page 34
Device Code
Device
Number
(optional)
Required
Colon
Filename
(upto8
characters­must
begin
with
alphabetic
character)
/ID 1A
I I I
TAR
I800.BAS/I
If
you
trytouse an
the
additional
legal
filenames,
CASHFLOW
ATARI.BAS
3ATARIDAT
ATARI22.ASM
ATARI#
A1234567. BA2
B ATARI.LST
DOS.SYS
DOSSYS
TEST1.123
ATARI.BASIC
Period as
required
separator
if
extenderisused.
Extender
---------------------' (optional) Includes
0-
3
characters
Figure 3-1
extender
character(s). The
withanexplanationofwhat
that
has
example
Legal name.
Legal name.
Illegal alphabetic
Legal name.
Illegal
Legal name.
Illegal
Illegal
Legal name.
Legal name.
Legal name.
lettersofthe
Structure
more
name. First
name.
name.
name. Reserved
of
than
three
in Figure 3-2
makes a
letter.
No
spaces
Note
extender.
a Filespec
characters, DOS I' wi II
illustrates
name
illegal.
characterisnot
allowed.
for
DOS.
that
DOS ignores
both
an
the
ignore
legal and il-
last
two
Figure 3-2
20
Using
DOS II
Examples
of
Legal
and
'"egal
Filenames
Page 35
WILD
CARDS
AT ARI filename.
and asterisk (*).
Use stand therefore, the
DOS
recognizes
Wild
the
question
for
any
is a
asterisk and
Examples:
*.BAS
D2:*
.*
PRO*.BAS
TEST??
two
"wild
cards are
mark
validcombination
great
question
representedbythe
(?)tosubstitute
deal
more
mark.
will end in .BAS.
will
will begin
will
begin numbers
flexible.
Iist
all
list
all
list
all
with
list
all
with
cards"
of
the
the
the
PRO and
the
TEST
for
the
that
you special
for
a single
characters The
following
program
program
program
have.
program
and
have
last
two
can substitute
characters,
character.
or
number
examples
files
on a
filesonthe
files
on
BAS as
filesondisketteinDrive1that
any
combination
characters.
for
characters
question
The asterisk
of
characters,
illustrate
disketteinDrive1that
Drive2diskette.
disketteinDrive1that
the
extender.
of
mark
(*)
the
letters
use
in a
(?)
can
and
of
or
Figure 3-3 use
wild
summarizes
cards in
their
DOS
MENU
Disk
A.
Run
B.
Copy
C.
Delete
D.
Rename
E.
Lock
F.
Unlock
G.
H.
Write
Format
I.
Duplicate
J.
Binary
K.
Binary
L.
M.
Run at Address
N.
Create
Duplicate
O.
the
DOS
Menu
options
parameters.
OPTION
Directory
Cartridge
File
File Yes
File Yes
File
File
DOS File
Disk
Disk
Save
Load
MEM.
SAV
File
and shows
whether
WILD
they
CARDS
Yes
No
Yes
Yes
Yes
No
No
No
No
No
No
No
Yes
allow
you
to
Figure 3-3
DOS
Menu
Options
That Can
and
Cannot
Use
Wild
Cards
Using
DOS II 21
Page 36
BOOT
When
ERRORS
you
Figure 3-4):
start
your
system,
boot
errors
can
occur
for
the
following
reasons (see
1. The
2. The
3. The diskette.
4.
The
single-density
inserted
diskette
diskette
diskette
diskette
was
inserted
has been
is a
double-density
diskette
does
not
have
wrong.
scratched,
warped,ormarred.Inthis
diskette
in an AT ARI 815
DOS
on it.
in an AT ARI 810
Dual
Disk
Drive.
case, use
Disk
Drive,
another
or is a
The
following
pearonthe
The
The
you
disk
disk
power
power
drive
have
Insert
1. The
2.
3.
4. The
5. The
If
1.
conditions
screen.
drive
driveisnot
adapter
adapter
code
checked,
the
Master
will
was
turned
properly
plug
plug
settingisnot
and
find
Diskette
Figure 3-4
also cause a
on AFTE R
has
loosened
has
loosened
correct.
noneofthese
or a System
Boot
Errors
boot
error,
the
computer
connectedtothe
from
its
from
the
problems,
Diskette
butnoindicationofit
console
computer
wall
socket.
disk
drive
take
into
the
Drive
was
turned
console.
PWR
socket.
following
1 and
will
steps:
reboot
ap-
on.
the
system.
22
Using
DOS II
Page 37
2.
Remove
the
Master
Diskette
and
store
in a safe
place.
SAVING,
LOADING,
AND
RUNNING
PROGRAMS
3. Reinsert
using tion
4).
4.
Then erase
Try
5.
6. If
After diskette, on
Drive, them. your
puter
to
Drive
using
ted.
Note:
ONLY
reformatting
you
you
your
computer, you You can use
programs.
and a step-by-step
the
computer.
and
the
problem
the
process
with
the
all
the
files.
the
diskette
For
the
AS A LAST RESORTtoavoid
have
created
are
readytowrite
have
the
We
Use
the
second
diskette
for
copying
problem
again. If
CX8111
fails,
you
meanstostore the
have
ATARI
the
your
lose
following
includedasample
procedure
the
first
setofinstructionsifyou
and save
files
disketteinDrive
this
810
diskette
System
your
any
program
and
simple
for
setofinstructionsifyou
any
(see
theC.COpy
1, use
fails,
the
Formatted
losing
has
bad
sectors on it and
Diskette
own
saving
and, if necessary,
programs.
storedinmemory.
retrieve
BASIC
program
it on a
have
accessible
the
DELETE FILE(S)
diskette
Diskette
the
improved
When
programs
commands
for
diskette
an AT ARI 815
filesonanother
FILE
Menu
will
havetobe
II,
this
shouldbedone
formatting.
shouldbediscarded.
formattedablank
the
poweristurned
With
an AT ARI
without
youtotype
have
havingtoretype
to
store
into
and
loadingitback
an ATARI 810
Dual
option
function
and
your
Disk
diskette
in Sec-
to
reformat-
OFF
Disk
retrieve
com-
in-
Disk
Drive.
If
You
HaveanAlARI
1.
Turnonthe
2. Insert
Turnonthe
3.
When
4. diskette
5.
Type
7.
When screen,
8.
Type
Nowtoreload
9.
Type
10.
When grambytyping
disk
the
System
computer
the
BUSY
that
has been
the
program
the
BUSY
the
program
NEW,•."..
LOAD
the
'I
..
฀฀฀฀฀฀฀฀฀฀
the
"D:INTERESl.SAV"
READY
810
Disk
Drive:
drive.
DisketteinDrive
console
light
goes
formatted.
shown
light
prompt
RU N
goes
you
typed
to
erase
program
1!/!/cd,.Ii/i;i¥I,i"cliil.
in Figure 3-5.
off
the
into
appears on
and
off,
remove
and
the
in is
program
memory:
฀฀฀฀฀฀฀฀฀฀฀฀฀฀
1.
television
the
READY
successfully
from
..
the
screen,
set.
System
prompt
saved on
RAM.
Diskette,
message appears on
you
can
the
now
and
diskette.
run
insert
the
a
the
pro-
USing DOS II 23
Page 38
11.
You
can
Note:
Do
use it
againinSection
also
load
and
run
your
programbytyping
not
delete
the
100 110
REM PRINT
5.
***
"IF
Sample
INTEREST
YOU
Interest
TYPE THE
RINCIPLE"
120
PRINT
EAR, I
130
PRINT
WS, YEAR
140
PRINT
WILL"
"AND
"SHOW
BY"
"YEAR,
THE INTEREST RATE PER Y
YOU
TO
STOP BREAK KEY." 150
PRINT 160 165 170 175 180 190
PRINT
INPUT
PRINT
INPUT
LET N
PRINT
"PRINCIPAL"i
P
"INTEREST
R
=1
RATE"i
200 LET A = P*(1 + R/100)J\N 210 220
PRINT
PRINT
"YEAR="iN "AMOUNT="iA
230 LET N = N +1 240
GOTO
190
HOW
program
AMOUNT
YOUR
ME,
PRESS
RUN
from
OF P
MONEY
THE
"D:INTEREST.SAV"
your
diskette;
you
GRO
will
If You
1.
Turnonthe
2. I
nsert
Turnonthe
3.
Type
4.
Type
5.
6.
When screen,
7.
Type
Now
READY
HaveanATARI
disk
the
System
computer
the
program
SAVE
"D2:INTEREST.SAV"
the
BUSY
the
program
NEW
฀฀฀฀
you
are
readytoload
Figure 3-5
815
Dual
drive.
DisketteinDrive1andaformatted
and
showninFigure
Sample
Disk
Drive:
television
3-5.
Interest
set.
Program
฀฀฀฀฀
light
goes
off
and
the
you
typedissuccessfully
to
erase
the
the
READY
program
program
prompt
savedonthe
from
you
have
RAM.
disketteinDrive
message
disketteinDrive
saved.
2.
appearsonthe
2.
24 USing DOS II
Page 39
8.
Type
LOAD
"D2:INTEREST.SAV"
lummi.
9. The program is
10. You
can
also
laalttml·
Note: Do
Section
not
5.
ready
load
delete
to be run. Type
and
run
your
program
this program from
RUN
';ljiiJmI.
by typing RUN
your
diskette; you will
"D:INTEREST.SAV"
use
it again in
Using
DOS II 25
Page 40
Page 41
4
SELECTING A DOS MENU OPTION
To
selectaDOS
1.
Type
2.
The
Figure 1-4
3.
Typeinyour
4. A
prompt before additional operate.
DOS and press
Menu
will
"The
message
the
DOS can
information
Menu
option:
฀฀฀฀฀฀฀฀฀
appearonthe
DOSIIMenu."
selection
and press
will
perform
(sometimes
appear
the
screen
฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀
listing
function
optional)
listing
the
you
the15options
parameters
have
chosen.
specifying
how
available.
you
needtosupply
The
parameter
the
commandisto
Refer
to
is
A. DISK
DIRECTORY
5.
The
prompt
time
the
item,
type
of
the
you
press
The
Disk
Directory displays that parameters
Type prompt.
If
filenames
sectors directoryofyour
the
file.Itwill
A and press
The screen ir
you
press
remaining
SElECT
A
฀฀฀฀฀฀฀฀฀฀฀฀฀
message SELECT
computer
the
screen
will
filenames,
either
entered.
on
ITEMORRETURN
DIRECTORY-SEARCH
system
letter
scroll
the
containsalistofall
the
Wild
completes
for
the
option
upwardtoallow
screen
displayapartial
cards can be used in
will
extender
฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀
displays
DIRECTORY
again
on
the
system
diskette
the
diskette.
-SEARCH
after
size (in sectors)ofeach
for
FOR MENU
SPEC,
LIST
ITEM
OR RETURN FOR
a request. If
you
need and press
clear
and
the
(if
any),
and
list
the
SELECT
the
this
message,
The
following
DOS
II:
FilE?
you
the
next
option's
redisplay
files
on a
diskette.
the
numberofsectors
or a
complete
the
parameters.
ITEM
entry
SPEC, LIST FILE
OR RETURN FOR
module
you
will
file,
example
Lists from
MENU
choosetoselect
prompt
the
list
message:
see a
and
shows
all
filenames
the
appears
The
bottom
message(s).
DOS
Menu.
On
command,
depending
listingofall
the
numberoffree
the
disketteinDrive
each
another
half
allocated
on
MENU
filesinthe
on screen
If
it
to
the
the
1
DOS SYS 039 DOS
SYS 019 (AT ARI 815
(ATARI
810
Disk
Dual
Drive)
Disk
Drive)
SelectingalJOS
Menu
Option
27
Page 42
DUP DUP
MEM MEM
SYS 042 SYS 021
SAY 045 SAY 022
(ATARI (ATARI
(ATARI (ATARI
810 815
810 815
Disk Dual
Disk Dual
Drive)
Disk
Drive)
Disk
Drive)
Drive)
PARAMETERS FOR THE DISK DIRECTORY
OPTION
As
you
can see
mand
has
If
youdonot
the
defauItvalues parameter, sizes on
At
this
time,
the
diskette
assume
second
The displayed press the
If
you
have
using
a P:
only
one
581 FREE SECTORS
626 FREE SECTORS
SELECT
from
two
parameters:
indicateaspecific
01:*.*,
the
diskette
you
can
you
designate.Ifyoudonot
you
wanttosee
default
on
the
screen.
the
DOS
insertedinDrive
an AT ARI
for
the
file,
DOS.SYS.
ITEM
the
entry
SEARCH SPEC and LIST FILE
of
01:
*. * ,E:
tells
DOS
you
currently
choosetosearch
the
filesonthe
parameter,
Therefore,ifyou
will
listonthe
1.
Printer
second
parameter.Inthe
(ATARI (AT
ARI 815
OR
RETURN
module
filespecinthis
insertedinDrive
E:,
you
message
for
these
wanttosee a
forasingle
indicateaspecific disketteinDrive1(the
tells
DOS
screen
can
printapermanent
810
Disk Dual
FOR MENU
for
the
parameter,
two
parameters.
listingofall
1.
file,
you
want
specify
example
all
filenames
neither
below,
Drive)
Disk
Drive)
Disk
Directory,
the
DOS
The
the
filenames
several files, or
disk
all
this
information
parameter
and
file
copyofthe
the
dataisprinted
will
drive,
default
sizes
this
substitute
first
defau
and
all
files
DOSIIwill
drive).
and
simply
stored
directory
com-
file
to
It
on
be
on
by
for
28
SelectingaDOS
Menu
1.
2.
3. If
On
If displayedonthe a task,itdisplays 4-1
Note:
space. the
Option
Type
After
you
on
the
the
screen or
you
do
illustrates
When
However,
filename
A and press
the
directory
haveaprinter
printer
not
insteadofthe
hardcopy
haveaprinter
screen. Each
a SELECT
several
filenames
when
and its
mmtl
prompt
anditis on, a
from
DOS.SYS 039 DOS.SYS 019
ITEM
different
are
displayed,
you
wanttoaccess a
extender.
message,
screen.
the
(or
it is
time
OR RETURN FOR
ways
partial
printer
(for (for
not
the
DOS II
you
names and
type
can use
DOS.SYS, P: and press
directory
you
single double
turned
DISK
file,
will
density)
their
you
for
see:
density)
on),
you
DIRECTORY
MENU
this
option.
extenders MUST
m'JfJ'fJi.tI
Drive1willbeprinted
will
see an ERROR-138
option
prompt
are
use a
completes
message Figure
separated
period
between
by a
Page 43
Example 1:
SElECT ITEM OR RETURN FOR MENU
A
฀฀฀฀฀฀
DIRECTORY-SEARCH SPEC, LIST
FILE?
*.SYSmm
SElECT ITEM OR RETURN FOR MENU
Example 2:
all
Lists diskette on
the
files
with
screen.
from
.SYS
Drive
1
extender
B. RUN
CARTRIDGE
SELECT
ITEM OR RETURN FOR MENU
A Iilmtt!
DIRECTORY- SEARCH SPEC, LIST D2:,P:U.
SELECT
ITEM OR RETURN FOR MENU
Example 3:
SELECT
A
ITEM OR RETURN FOR MENU
iifmtiZl
DIRECTORY - SEARCH SPEC, LIST EO?*
mim
SELECT
ITEM OR RETURN FOR MENU
Figure 4-1 Using the Disk Directory Option
Whenever
Systemtothe
displays
displaysanEDIT
CARTRIDGE
you
selectB,DOS inserted
a READY
appears on
cartridge.Ifthe prompt.Ifthe prompt.Ifyou
the
screen.
II gives
Assembler
have
FILE?
FILE?
controlofyour
BASIC
not
cartridge
Editor
insertedacartridge,
Lists
all
filesonDrive
disketteonthe
Lists
all
3-letter
from
the
Drive1diskette
that
begin
with
AT ARI Personal
is inserted,
cartridge
is inserted,
line
filespecs
EO.
the
2
printer.
Computer
the
screen
the
screen
message
NO
Example:
SELECT
BI'DtiZI
the
MEM.SAV
If guage
program
฀฀฀
RU N CARTR was your peartoremind commands
and
there
before
useofCOPY FILE,
(see
ITEM OR RETURN FOR MENU
file
exists on
will
automatically
then
reloaded
IDG
E). This is assum ing
you
called
you
that
sectiononMEM.SAV).
the
into
RAM
DOS DUPLICATE MEM.SAV
Drive1diskette,
be savedtothe
when
the
disketteinDrive
and
that
FILE, or
can be
your
diskette
you
return
controltothe
1 is
you
did
not
DUPLICATE
invalidatedifyou
SelectingaDOS
BASICorassembly
when
you
type
cartridge
the
same
diskette
invalidate
DISK. A
trytouse
MEM.SAV
prompt
anyofthese
Menu
Option
will
lan-
DOS
(B.
that
by
ap-
29
Page 44
c.
COpy
FILE
If
you
did
not
haveaMEM.SAV
entered
memory now,
of gram RAM to
Use disketteinone
parameters
parameter,
The
copyingagroupoffiles
tion
be
destination
3, 5,
COpy same pletely several file whichitwas
DOS,
you
before
unless
your
program area with
DOS
I.
this
optionifyou
useofwild
can
be used
appended.
and
FILE can
diskette
different
files
willbecompressed;
you
you
previously
file
with
the
DUP.SYS increases
disk
associated
FROM,isusuallyafilespec,
cardsinthe
with
The
device
6 in
Figure
also
with
filename.Ifthe
that
have
copied.
will
entered
disk
drivetoanother
second
such
4-2).
the
fileonyour
find
that
any
DOS is
savediton a
happens
utility
have
twoormore
with
from
the
second
parameterisgenerallyafilespec,
as E: (screen), P:
be usedtocreateabackup
same
been
appended(a"compound"
i.e.,itwill
now
when
using
package
the
amountofRAM
diskette
the
COpy
first
parameter
one
disk parametertoallow
filename,
file
you
takeupfewer
System
BASIC or
gone.
Your
diskette
DOSIIbecause
storedinthe
disk
drives
in a
FILE
command:
which
mayor
gives
drivetoanother
(printer),orD:
butadifferent
are
copyingtoa
Diskette
assembly
program
before
DUP.SYS
availabletothe
and
second
youavery
copyofa
sectors
language
you
you
wanttocopyafile
disk
FROM
may
not'
(see
Example
two
complementary
(disk
extender,orevenacom-
new
file),
the
than
(in
Drive1)when
program
cannotberecovered
called
particular
DOS. This loss
share
the
file.
The sharing
user
drive.
There
and
TO. contain convenient
but
drive)
nameismadeupof
new
the
wild
6).
can (see
versionofthe
original
you
user
pro-
compared
from
are
two
The
first
cards.
way
ThefAop-
files
also
be a
Examples
fileonthe
file
from
in
of
a
of
to
Note:
Attemptingtocopy
way
you
can
ly
If
you
attempttocopyafile,asdescribed System after the TO remind file gram response can your
You printer
Caution1:Do
mand. be or and
Caution2:Remember having
Diskette,
typinginthe
destination
USE
PROGRAM
you
process. A
areaorMEM.SAV
only
file
can
(P:)
Each
written.
two
binary
untokenized
matching
write
drive
that
DOS
"Y"
tells
the
use a
much
will
stillbecopied
also
use
not
tokenized
However,
files
you
source
DOS
this
append
createdbythe
files
line
any
a DOS.SYS
will
getanew
drive number AREA
II can use allofthe
notifies
fileatthis
thatitcannot
smaller,
selectiontocopy
file
you
can
are
thatinmerge
numbers
DOS.SYS
number
(where
CAUTION:
DOS II
internal
when
tokenized
has its
merge
explainedinSection
could
file
fileisto
that
you
own
Assembler
use
above,
prompt
(where
the
data
AY
user
you
time
and
put
anything
buffertomove
give
the
BASIC files, i.e.,
symbol
two
BASIC
operations,
cause
will
message. You
really
an N response,
Editor
the
generateanerror
theH.WRITE
whenaMEM.SAV
will
the
informationiscoming
is going). This message, TYPE Y I F
INVALIDATES
program
MEM.SAV
file
table,
files
5.)
files
filestointerfere
areatospeedupthe
don't
care
willbeinvalidated.
into
the
your
listingtothe
files
stored
etc., and
stored
cartridge
stored
message. The on-
DOS.SYS
file
get
the
MEM.SAV,
about
your
user
program
file.Inother
butitwill
screen (E:), or
with
only
the
with
a LIST
or DOS II.
with
a LIST
with
file
option.
is on
new
message
from)
appears
user
area.
words,
take
longer
a SAVE
first
file
command,
(Tokenized
command
each
other.
your
and
OK
to
copy
pro-
An N
It
the
com-
will
30
SelectingaDOS
Menu
Option
Page 45
Example 1:
SELECT
C
COpy - FROM, TO?
D1:DOSEX. BAS, D2:DOSEX.BAS
SELECT
Example 2:
SELECT
ITEMORRETURN
'l7!Jl!J.a
ITEM
ITEM
OR
OR
RETURN
RETURN
FOR MENU
FOR MENU
FOR MENU
฀฀฀
COpy
- FROM, TO?
D1:DOSEX.BAS,D1 :DOSEX.BAK
SELECT
Example 3:
SELECT
ITEM
ITEM
OR
OR
RETURN
RETURN
FOR MENU
FOR MENU
฀฀฀
COpy- FROM, TO?
OR
Em
RETURN
FOR MENU
D1:DOSEX.LST,E:
SELECT
ITEM
.m
Copies D2.
Creates same
Displays screen.
DOSEX.BAS
backup
diskette.
the
program
fromD1to
copy
of file on
listing on
Example 4:
SELECT
ITEM
OR
Cmmii13
COpy
- FROM, TO?
E:,D1:TEMPDAT
BILL PETEili:
RAY
STEVE
3
SELECT
Example 5:
SELECT
ITEMORRETURN
ITEMORRETURN
••
cmma
COpy - FROM, TO?
D1:DISEX.LST,P:
SELECT
ITEM
฀฀
OR
RETURN
RETURN
FOR MENU
FOR MENU
FOR MENU
FOR MENU
Copies
into
Type
wanttobe file
Terminates
Lists DISEX.LST on
any
a file
named
dataonscreen
the
program
Selecting
succeeding
storedinTEMPDAT
entryofdata.
the
a DOS
data
TEMP.DAT.
that
you
listing printer.
Menu
Option
31
Page 46
Example 6:
D.
DELETE
FILE
SELECT
c
COpy
*.*,D2:
SELECT
ITEM OR RETURN FOR MENU
1;li"hU'
- FROM, TO?
lijil!im.
ITEM OR RETURN FOR MENU
Example 7:
SELECT
ITEM OR RETURN FOR MENU
C Iiiiii!;!:'
COPY - FROM, TO?
D1
:PROG2,PROG1/A
SELECT
This
directory.
Note:
I. You
ITEM OR RETURN FOR MENU
option
allows
Wild
DOSIIwill
must
use
cards can be used in
DOSIto
lil\jii@'
Figure 4-2 Using the
youtodelete
not
allow
youtodelete
delete
files
Copy
oneormore
the
filespec
any
from
any
files
files
DOS I
Copies except extender.
Appends the
File
names.
on a
all
those
PROG1
Option
fromadiskette
diskette formatted
files
from
D1toD2
having
PROG2
file.
formattedbyDOS
.SYS
file
on D1
and
diskette.
the
to
disk
E.
RENAME
FILE.
The
verification deletingafile.Byappending entry,
DOSIIwill
You can also ple4illustrates Note
that needtobe the
screen
If
you
have
clear
the
disketteofall
on these
This parameters, alwaysacomplete assumes D1: (the The parameter.Ifthere the character. ample
Warning: you
diskettes.
option
device
renamed
2 in Figure 4-4).
Do
should
prompt
delete
the
theINoption
answered
will
display
purchased
allows OLD
default).
numberisautomatically
file
will
You can use
NOT
never
message gives
eliminate
all
files
steps
for
is used in
for
each
ERROR-167 (File Locked).
ATARI
files
youtochange
NAME
use DOS I
and
filespec.Ifyoudonot
are any
consistofthe
wild
rename
theINoption
this
verification
on a
diskette,
deleting
this
fileonthe
810
Formatted
without
NEW,
The
NEW
illegal
cards in
any
file
with
DOSIIdiskettes.
youachancetochange
(No
Verification
step (see
but
leave
all
the
existing
examplesothe
diskette.Ifyou
Diskettes
destroying
the
nameofoneormore
for
this
option.
specifyadevice
parameter
the
device
charactersinthe
charactersupto,
both
the
on a
DOSIIdiskette
the
refers
first
filesonthe
improved
specified
and
your
request)tothe
Example
the
diskette
verification
trytodeletealocked
II,
this
The
parameter
simplytothe
parameter
but
second
3 in Figure 4-3).
formatted.
disketteinDrive
request
is an
excellent
formatting
files.
number,
in
the
NEW,
not
including,
parameters
using
DOS
mind
about
filespec
Exam-
does
way
available
There
are
OLD
NAME
the
computer
new
filename.
OLD
NAME
the
name
the
illegal
(see Ex-
I. In general,
1.
not
file,
to
two
is
of
32
Selectrng
a DOS
Menu
Option
Page 47
If
you
attempt
(Device
on displays ERROR-167, FILE).
Example 1:
the
Done diskette,
to
Error)
an ERROR-170 (File
rename a will
displayonthe
it
means
file
that
on a
write-protected
screen.Ifyou
Not
Found)
you
triedtorenamealocked
trytorename a
error
diskette,
displays. If
an ERROR-144
file
thatisnot
the
screen
file
(see F. LOCK
SELECT
D
DELETE
D2:REM*
TYPE
ITEM
฀฀฀฀฀฀฀฀฀฀฀
FILESPEC
"y"
REM1.BAS?
Y
l;!iJjlIRll
REMBAA.
Y
Inium
SELECT
Example 2:
SELECT
ITEM
ITEMORRETURN
฀฀฀
DELETE
D:
TYPE
FILESPEC
TEMPDA
"y"
TEMP.DAT
NllDlD
SELECT
Example 3:
ITEMORRETURN
.BAS
TO
BAS
TO
OR
Em
DELETE
OR
T
฀฀
DELETE
RETURN
...
RETURN
...
FOR MENU
FOR MENU
FOR MENU
FOR MENU
All
files
that
that
and
Verification
Deletes
Deletes
A single file. Verification
If Y is deleted.
have a .BAS extender.
REM1.BAS.
REMBAA.BAS.
typed,
begin
prompt.
prompt.
file
will
with
REM
be
SELECT
D
DELETE
DOXEX. BASIN
SELECT
Example 4:
SELECT
D
ITEMORRETURN
.ll1miIm
FILESPEC
ITEMORRETURN
ITEM
mmliIm
Em
OR
DELETEFILESPEC
*.*/N
mmJD
SELECT
ITEM
OR
FOR MENU
FOR MENU
RETURN
RETURN
Figure 4-3 Using the Delete File
FOR MENU
FOR MENU
File
willbedeleted
requesting
Deletes Drive1diskette.
all
Option
Selecting
verification.
files
a DOS
from
without
the
Menu
Option
33
Page 48
Example
1:
SELECT
E
ITEM OR RETURN FOR MENU
฀฀฀฀฀฀฀฀฀฀
RENAME, GIVE OLD NAME, NEW
D2:
TEMPDAT,NAMESDAT
SELECT
Example
SELECT
E
ITEM OR RETURN FOR MENU
2:
ITEM OR RETURN FOR MENU
฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀
฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀
RENAME, GIVE OLD NAME, NEW
* .8K B,-, BAS
SELECT
Example
SELECT
F
฀฀฀฀฀฀฀฀฀฀฀฀฀
WHAT
DO
S.SYS
SELECT
Example
r:J:!il!.t:J
ITEM OR RETURN FOR MENU
Figure 4-4
1:
ITEM OR RETURN FOR MENU
FILE
TO LOCK?
฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀
ITEM OR RETURN FOR MENU
2:
Using
Changes from NAMES.DAT.
All their
the Rename File
Locks
the
fileonDrive
TEMP.DATto
files
with
extender
extenders changedto.BAS
Option
the
DOS.SYS File.
2
8KB
have
SELECT
F
D1 :* .BAS
SELECT
Example
SELECT
ITEM OR RETURN FOR MENU
FILE
TO LOCK?
rJ!:IJ:J1!:J
ITEM OR RETURN FOR MENU
3:
ITEM OR RETURN FOR MENU
Fmll11
FILE
TO LOCK?
฀฀฀฀฀฀฀฀฀
SELECT
Example
SELECT
฀฀฀
SELECT
ITEM OR RETURN FOR MENU
4:
ITEM OR RETURN FOR MENU
TO LOCK?
ITEM OR RETURN FOR MENU
Figure 4-5 Using the
Locks extenderof.BAS.
Locks begin
Locks all D1
Lock
File
all
all
with
Option
files on D1
files on D1
T
files
with
that
an
34
Selecting
a DOS
Menu
Option
Page 49
F.
LOCK FILE
Use
this appended, locked
A name.
file.
locked
DO
selectiontowrite-protectasingle
renamed,ordeleted.AnERROR-167
You
can
use
wild
cardstolock
file
will
NOT
appearonthe
confuse
this
Disk
asterisk
Directory
withawild
file.Alocked
will
result
several
filesatthe
withanasterisk
card.
file
cannotbewritten
from
tryingtowritetoa
same
(*)
time.
preceding
to,
its
UNLOCK
C.
FILE
Warning:Ifyou the
locked
the
LOCK
Use
this
optiontounlockafileorfiles
you
complete
Disk
Directorytoindicate
the
next
time
Wild
cards
Example
lock
any
filesonthe
files
WILL
STILL BE
FI LE
command.
this
option,
you
executeaDISK
canbeusedinthe
the
the
1:
OBLITERATED.Inother
asterisk
file
was
filespec
SElECT ITEM OR RETURN FOR MENU
DOSEX.BAS
TO UNLOCK?
฀฀฀฀฀฀฀฀฀฀
SElECT ITEM OR RETURN FOR MENU
Example
2:
SElECT ITEM OR RETURN FOR MENU
rm:;.rJ
C WHAT
T*.*
FILE
TO UNLOCK?
฀฀฀฀฀฀฀฀฀฀฀฀฀฀
SElECT ITEM OR RETURN FOR MENU
Disk
Directory
you
previously
that
appeared
locked,
DIRECTORY
names.
and
then
words,
locked
before
willnolonger
command
Unlocks D1.
Unlocks the
letter
format
formatting
using
optionF.When
the
filenameinthe
appearonthe
(DOS
Menu
DOSEX.BAS
files
beginning
T on
Drive
the
option
diskette,
ignores
screen
A.).
file
on
with
1.
H. FILE
WRITE
DOS
Example
3:
SElECT ITEM OR RETURN FOR MENU C
฀฀฀฀฀฀฀฀฀฀
WHAT
PRO B?D AT
FILE
TO UNLOCK?
฀฀฀฀฀฀฀฀฀฀฀฀฀฀
SElECT ITEM OR RETURN FOR MENU
Figure 4-6 Using the
To
write
DOSII(composedofDOS.SYS
must
have
previously else be DOS
Note: mattedbyDOSI.Similarly, DOSIformatted
using
an AT ARI 810
II istobe
DOSIIwill
written
not
diskette.
formatted
Formatted
can be
allow
youtowrite
DOSIshould
Even
the
insertedinthe
though
diskette
Diskette
the
we
Unlocks beginning having
Unlock
and
only
File
DUP.SYS
using
DOS
II (CX8111).
disk
driveofyour
new
DOSIIfiles
be usedtoWRITE
advise
against
a
Option
files)
II (see I.
it,
Selecting
ails-letter
with
PROB
DA
T
extender.
ontoadiskette,
FORMAT
(The
disketteonwhich
choice.)
ontoadiskette
DOS
FILE
you
shouldbeaware
a DOS
Menu
files
and
DISK)
onto
Option
you
or
for-
a
35
Page 50
that
DOS
diskette.
I does
allow
youtowriteacopyofDOSIontoaDOSIIformatted
I.
FORMAT
DISKETTE
Warning: ing use able
As screen is
RETURN FOR
If
you
will
ontoadiskette
This
that allows minutesonthe Disk
You
with
some
DOSIIto
diskettes.
soonasthe
cleared
trytowriteanew
get
an ERROR-144. You
option
is usedtoformatadiskette.
you
no
datatobe
Drive.
should diskettes
protect
DOS
MENU,
inserted
Figure 4-7
longer
stored
ATARI
never
and
WRITE
formatted
yourself
files
have
both
are
redisplayed.
DOS
in an 815
DOS FILE
by
from
been
the
menu
file
ontoadiskette
will
also
Disk
onto
a DOS II
both
DOS
I and
making
getanerrorifyou
written
and
Drive
errors
to
the
prompt
that
that
that
has
some
diskette
message, SELECT
has been
SElECT ITEM OR RETURN FOR MENU
fI1!iJI!!"JtfI#
H DRIVE TO WRITE DOS
฀฀฀฀
1
TYPE
/lY" TO WRITE DOS TO DRIVE 1.
Y
฀฀
WRITING NEW DOS
FILES
FILES
TO?
SElECT ITEM OR RETURN FOR MENU
Using
the
Write
DOS File
The
want.
Formatting
and
retrieved.
810
Disk
diskette
writesadigital
Formattingadiskette
Drive
and 2 1/2
can be
pattern
minutesonthe
diskette.
formatted
might
(see Figure 4-7),
write-protected,
try
writinganew
the
WRIT
Option
blankorhave
on
takes
When with
damage
PROT
the
diskette
approximately
ATARI
your
ITEM
DOS
light
files
815
work-
DOS II,
valu-
the
OR
you
file
on.
on it
that
2
Dual
36
SelectingaDOS
Menu
The you tors. The screen
II that times.Ifthis
before
Ifadisketteisnew
plier
than
Option
example can
specify
will
refusetoformat
the
diskette
returning
for
exchange. You
AT ARI
in Figure 4-8
any
drive.Itis
will
display
has
happens, it
an ERROR-173.
and has
may
notbeof
SElECT ITEM OR RETURN FOR MENU
1f1/ii1!J.'fJ'lJ
WHICH DRIVE TO FORMAT?
1fl!!il!l'fJ'lJ
TYPE
Figure 4-8 Using the
illustrates
an ERROR-173 (Bad Sectors at
the
diskette.IfDOS
bad
sectors, it may
bad
shouldbeaware
high
Drive
1 as
not
possibletoformatadiskette
will
trytoformat
take
upto15
sectors,itis
that
enough
qualitytowork
/lY" TO FORMAT DISK 1
OR RETURN FOR MENU
Format
the
drivetobe
II gets a message
the
minutes
recommended
diskettes
tryingtoformatadiskette
suppliedbyvendors
with
Disk
Option
formatted;
containing
Format
from
diskette
you
returnitto
the
AT ARI
however,
bad
sec-
Time), and DOS
the
disk
drive
two
additional
the
sup-
other
Disk
Drives.
Page 51
J.
DUPLICATE
DISK
Warning:
diskette.Ifyou the DELETE FILE(S) instead.
Use option
it) process is by the
The
not
they
the
files
the
The
If
you tion ATARI drive however,
cess
Formattingadiskette
formatanATARI
speed
and
inserting
duplication
only
source
duplication
advantage
this
menu
optiontocreateanexact
withasingle
destination
complete.
source
duplication
are
are
also
disketteisalso
previously
source
diskette
attempttouse a DOS I
diskette
810
Formatted
using DOS I or DOS II.Ifyou
be sure
will
write
disk
(disketteonwhich
You can
and
processtoproceed
process is a
all
your
locatedinthe
storedonthe
process is
must
can be
noneofthe
over
them
always
810
of
using a
drivebymanually
also
destination
sector-by-sector
files
copied
same
copied
destination
complete.
be a DOS II
diskette,
any
formatted
Diskette
with
files
the
II (CX8111) or
destroys
Formatted
preformatted
duplicateofany
swapping
you
are
use
this
option
diskettesintwo
automatically.
from
the
sourcetothe
sector
numberonboth
onto
the
destination diskette
formatted
you
AT ARI
use an
old
on it are
new
valuable,
files.
all
Diskette
diskette.
putting
with
copying
diskette
will
getanerror
diskette.
any
diskette
files
and
source
files)
multiple
separate
technique.
diskettes.
diskette.
will
have
for
This means
diskette
for
because
format
II (CX8111),
Use
Menu
diskette.
(diskette
until
disk
drives
destination
For
been
youtouse
message. The
you
formatted
the
destination
the
existingonthe
you
will
Option
You
can use
with
files
the
duplication
drive
systems
and
allowing
This means
diskette,
The
directory
this
reason,
destroyed
on
duplication
this
option.
destina-
can use
your
diskette,
when
lose
D.
this
on
that
but
of
any
any
disk
pro-
DUPLICA
TION
USINC A
SINCLE DISK DRIVE
Remember, duplicate Drive.Ifyou
You can Drivetoan AT AR I 810 ettesbyusing data
will
is
stored.
Since between always before DUPLICATE
invalidatedifyou
DUPLICATE
The
BASIC
the
destination
single
In a Figure 4-9)
Always cidentally
ERROR-144, and
you
cannot
diskettes
still
look
there
is no
ATARI save BASICorassembly attempting
DISKasthereisfor
programisstored)
disk
write-protect
insertedinplaceofthe
between
trytodo
approximate
the
COpy
the
same on each
true 810
give
DISK
diskette
drive
your
duplicate
so,
you
the
Disk
FILE
duplication Disk
Drives
to
duplicate
DOS II option
as a
when
system,
your
source
source
a DOS I
an
ATARI
will
duplication
Drive
command
diskette,
the permissiontoproceed always
buffer
one
the
source
diskette
810
getanerror
(and
vice
with
but
process
and
language
a
drive
diskette
destination
ATARI
diskette.
COpy
uses
the
for
moving
is used.
and
will
between
Disk
process
versa) and
the
there
programs
FILE
program
destination
as a
stillbeintact.
formatted
Drive
message.
from
*.*
option
are
DOS I and
815
Dual
There
command,
(andtouse
the
filesonthe
safety
diskette,
diskette,
and an
an AT ARI 815
from
DOSIto discussed
differencesinthe
Disk
that
are
is no
and
area
(whereaRAM-resident
drives
measure. Then, ifitis ac-
the
screen
nor
can
ATARI
DOSIIdiskettes,
Drives,
currently
internal
MEM.SAV
the
source
are
both
815
Dual
DOS
earlier.
way
you
buffer
program
diskette
Drive
will
display
II d isk-
should
in
will
Disk
Disk
data
RAM
area).
1 (see
you
The
or
for
be
to
an
SelectingaDOS
Menu
Option
37
Page 52
If
you
TO
USE
RETURN
Figure
type
any
PROCRAM
FOR
4-9 is an
character
MENU
exampleofduplication
AREA
prompt
other
than
message,
appearsonthe
Y in
the
program
usingasingle
responsetothe
aborts
screen.
disk
and
the
drive:
TYPE
SELECT
"Y"IFOK
ITEM
OR
DUPLICATION USING MULTIPLE DISK DRIVES
SELECT
J
DUP
1,1
INSERT TYPE
ITEM
฀฀฀฀฀฀฀฀฀฀฀฀฀฀
DISK-SOURCE,
SOURCE DISK,
"Y"
IF
OR
RETURN
FOR MENU
DEST
TYPE
฀฀฀฀฀฀฀
RETURN
OK TO USE PROGRAM
฀฀฀฀฀
CAUTION: A "Y" INVALIDATES MEM. SAY
Y
฀฀฀฀฀฀฀฀฀฀฀
INSERT
SELECT
DESTINATION DISK,
ITEM
OR
RETURN
TYPE
RETURN
FOR MENU
Figure 4-9 Using the Duplicate Disk Option With a Single Disk Drive
Note:
The
destination
foragiven full,
a 48K
require
If distinguish mats disk
you
fiveorsix
are
when
drive.
numberoftimes
diskettes
system
system
using
between labeling
and
might
diskette
both
the
the
DUP
dependsonthe
the
amountofRAMinthe
require
the
files
diskettes.
only
insertions.
ATARI stored
using
810
This
program
number
two
and
the
will
requests
and
insertions,
ATARI
single-density
keep
youtoinsert
sizeofthe
system.Tocopyadiskette
whereasa16K
815
Disk
and
you
from
using
file(s)tobe
Drives,
the
source duplicated
system
make
sure
double-density
theminthe
and
that
might
you
for-
wrong
is
38
SelectingdDOS
Menu
Option
For a
multiple program,asthe dated. diskette
models.
The
take
Notice
cursor
several
disk
drive
user's
that
the
into
Drive2(Figure
remainsonthe
minutesifthe
SELECT
J
lC:,Jj;il:;.;:%1
DUP
1,2
INSERT
TYPE
CAUTION: A
฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀
Y
SELECT
system, it is
program
source
ITEM
DISK-
area
disketteisinsertedinDrive1and
4-10)
screen
source
OR
SOURCE, DEST DRIVES
฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀
BOTH DISKS,
"Y"
IF
OK TO USE PROGRAM AREA
ITEMORRETURN
also
necessarytosave a
will
be
altered
You
can
use
during
"y
the
duplication
disketteisalmost
RETURN
n
INVALIDATES MEM. SAY
TYPE
FOR MENU
RETURN
and
any
FOR MENU
RAM-resident
MEM.SAV
twoofthe
process. This
full.
will
the
same
BASIC
be
invali-
destination
disk
drive
process
Figure 4-10 Using the Duplicate Disk Option With Dual or Multiple Disk Drives
can
Page 53
K. BINARY SAVE
Note:
This
Computer
knowledge beyond
Use
(binary)
this decimal binary parameters 2,3,
In and
this
format.
and 4.
the
the
the
format.
file
example
instruction
user. Unless
of
assembly
first
example.
Menu
selectiontosave
Programs
The
parameters
numbers.
or
program.
that
allow
below,afiletobe
ending
address 5BFF is saved on a
will
probably
you
understand
language,
written
for
The START and
The
INIT
youtomake
not
be used by a
hexadecimal
you
may
the
contentsofmemory
using
the
Assembler
this
selection:
END
addresses are
(initialize)
any
program
called
BINFIL.OBJ
disketteinDrive
beginning
numbers
not
wishtoread
Editor
START, END,
required
and RUN addresses are
executeonloading.
with
the
ATARI and the
locationsinobject
cartridge
INIT,
RUN, are hexa-
parameters
See Examples
starting
1.
address
Personal
have
some
information
file
also
have
for
any
optional
3COO
ADVANCED USER INFORMATION ABOUT OPTIONAL
PARAMETERS
Figure 4-11 is an
Figure
All
binary
files,
the
Assembler
file
(see Figure 4-12).
out
the
starting
Header
Byte
#
#1
#2 #3
#4
#5
#6
exampleofthe
Example
SElECT
SAVE-
BINFIL.OBj,
SElECT
4-11 The
like
those
you
Editor
cartridge,
From
address and
Decimal Number
255 255
o
60
255
91
useofBINARY
1:
ITEM
OR
FILE,
3COO,
ITEM
OR RETURN FOR
Most
would
haveacommon
the
header
ending
address
RETURN FOR
END,
5BFF
'ftlmm
Elementary
create
with
data
showninthe
that
Hex
Number
FF FF
00
3C
FF
5B
SAVE:
MENU
INIT,
RUN
MENU
UseofBinary
the
BINARY
6-byte
was used in Figure 4-12.
Description
Identification binary Starting
Ending
Save
SAVE
header
table,
that
you
load
file
address (LSB)
address (LSB)
optionorwith
precedes
can
code
(MSB)
(MSB)
easily
for
the
pick
Figure 4-12
The
two
optional assembly of
eitherorbothofthese address that into given.
does
the
language
not
computer
parameters,
contain
file
but
execute
data
will
for
not
Six-Byte
INIT
these
execute
File
data
segment
8191
(Dec)
bytesofdata.
Header
and
automatically
parametersiscalleda"load-and-go"
parametersiscalleda"load"
Table
RUN,
after
untilaM.
for
Binary
offer
the
meanstomakeabinary
loading.Afile
RUN AT ADDRESS
SelectingaDOS
Save
that
file,
contains
makes
file.Afile
since it
command
Menu
Option
use
loads
is
39
Page 54
In
general,
tion
will
begin reached). For is a
compound pended dress. In
together
this
the
RUN
as soon as a
this
file.
case,
address
reason
For
with
only
eachofthe
parameter
whole
fileisloaded
there
can
onlybeone
example,afile
original
the
last
RUN addresstobe
defines
couldbemadeupof
the
effective
small
into
point
RAM
files
loaded
in a
RUN address
having
program
(i.e.,
several
would
when
their
execute.
where
execu-
EndofFile is
even
if a
small
files
own
RUN
**
file
ap­ad-
USINC BINARY SAVE
WITH
OPTIONAL
PARAMETERS
If an IN IT address is
RAM,
the
code
thatitpointstowillbeexecuted. upofseveral segment
dress is segment always
createdbythe
Files storedinthe be
controlled. (HICH) (HICH)
code
thatitpointstomust
Note: dress. For program
**An
RTS (RETURN) at
* Each loaded
The
example
data
area initialization gram
resides assume code
and
load-and-go
which
has an
loaded.
wouldbeloaded,
precedes
Hex.
Hex.
lOeB
being
code
or, if it is desired,
that
Thus,
the
desired
The
The
INIT
Remember,
#1 is
this
reason it is
executed.
segment
in Figure 4-13
that
mustbeinitialized
code
between
both
the
initialization
specified,
INIT
each
executionofany
Assembler
INIT
RUN
address is
open
during
the
must
resides
4200 (Hex) and 4FFF (Hex). For
the
initialization
then
as soon as
files
appended
address
segment
etc.*
Executionofcode
Editor
and RUN addresses in
address is
always
the
INIT
address is
have
been
the
not
available
endofa
end
with
returnedtoDOSIIcontrol.
illustratesanassembly
before
from
address 4000 (Hex)to41 FF (Hex) and
code
ends
together.
specified
would
code
cartridge
always
executionofcode
storedinLocations
storedinLocations
previously
and
program
an RTS (RETURN)ifthe
the
code
and
with
the
actual
This is
In such a case
will
be
load
and be
pointedtoby a RUN address.
using
your
executed
loaded.
must
notbetampered
will
always
main
program
main
an RTS (RETURN).
address gets
true
evenifthe
each
executed
pointedtoby
the
load-and-go
code
as soon as it is
pointedtoby
language
program
when
executed
followedbythe
return
can use it. Suppose
purposesofillustration,
before
any
2EO
(LOW)
2EZ
(LOW)
withbythe
controltoDOS
next
segmentisto
program
contain
loaded fileismade
load-and-go
the
INIT
option
loaded,sothe
any
the
into
INIT
ad-
the
next
address
can be
code
and 2E1
and 2E3
INIT
ad-
user
that
uses a
the
main
pro-
executable
to
II.
be
40
Selecting
a DOS
Menu
Option
the
In memory.
The
following
1.
Memory
2. The
following
example
Example 2:
SELECT
K
SAVE-GIVE
LACPRC.OBj,
SELECT
Figure 4-13
events
from
4000to4FFF
INIT
address 4000 (Hex) is
we assume
the
ITEM OR RETURN FOR MENU
฀฀฀฀฀฀
FILE, START, END, INIT, RUN
4000, 4FFF, 4000, 4200
ITEM OR RETURN FOR MENU
Using
will
Binary
occur
Save
on
loading
willbefilled
storedinMemory
program,
With
Optional
this
file
with
LACPRC.OBj,isalready
฀฀฀
Parameters
into
memory:
the
program
Locations
2E2 and 2E3 (Hex)
in
Page 55
3.
Initialization
program
from
4000to41 FF
will
execute.
STRUCTURE
OF
A COMPOUND
FILE
4. The RUN address 4200 (Hex) is
Main
5.
In
the the where
Before compound together. FI LE is
not ing Editor
the
illustratedinAppendixI.The
tion
C.
COpy
When
ment of BINARY pound
program
until
a RETURN (RTS) is
caseofcompound
now
appended
files
have
considering
fileisconstructed
This can be
option
compatible
theL.BINARY
cartridgeisdesired,analternate
K. BI
NARY
codeisincluded
File.
K. BI
NARY
(after
compound
LOAD
files.
from
files
been
the
with
its
append
with
LOAD
SAVE
SAVE is used,
the
first
one)
file
thatiscompatible
optionofDOS
4200to4FFF beginstoexecute
executed,
files,
the
were
created.
appended.
next
example,
of
doneinoneoftwo
option.Acompound
the
Assembler
optionofDOS
option
with
every
are
we
only
NOT
II,
storedinMemory
or a or
resultismore
The
lookatthe
various
Editor
II.Ifcompatibility
waytocreateacompound
have
been
real
differenceisthat
segment
the
includedinthe
however,iscompatible
whenacompound
additional
with
complicated,
next
section
structureofa
binary
files
ways.
One
file
loader,
discussing.
identification
the
Assembler
final
Locations
and
that
wayisto
created
althoughitcanbeloaded
The
file.
2EO and 2E1 (Hex).
will
continuetodo
occurs.
dependingonhow
illustrates
compound
have
been
use
with
with
two
typesoffiles
the
FFFF (Hex)
fileiscreated
codes
Thisisthe
Editor
cartridge.
with
both
several cases
file.
appended
theC.COpy
this
command
the
Assembler
fileisto
identifica-
for
each
only
The
typesofcom-
so
A
us-
use
are
using
seg-
form
L.
Now
consider various they being
Example 3:
Suppose dress type
INIT
were
partofthe
you
included
mightbecreated.
what
happens
and
RUN addresses
appended.
dataineach
have
three
in its
data.
SELECT
fti:J1!liJ,;,'7;
K
SAVE FILE-GIVE
PART1.0BJ,
SELECT
SELECT
K
';:1"Jil'4;'!.'j
SAVE
PART2.0BJ/A,
SELECT
Figure
4-14
whenacompound
were
(It
will
help
youtothinkofthe
segment,
files,
eachofwhich
The
example
ITEM
OR
RETURN
FILE,
2000, 21 FF" 2000
ITEMORRETURN
ITEM
ITEM-OR
ITEM
Using
RETURN-FOR
2200,
OR
RETURN
Binary
file
like
specified
which
in Figure 4-14 shows
for
they
has a RUN address,
FOR MENU
START,
END, INIT, RUN
rJ;lt",m
FOR MENU
MENU
23FF"
2200
฀฀฀฀฀฀฀฀
FOR MENU
Save to Save
Compound
thisisloaded-supposing
eachofthese
INIT
and
are
essentially.)
one
SelectingaDOS
files
RUN
addresses as
butnoINIT
wayafileofthis
Files
Menu
before
Option
ad-
41
Page 56
The
other
PART1.0BJ,
COpy
or C. new
fileisloaded?
1.
PART1.0Bj
two
files,
can
thenbemerged
FI LE
loads,
PART2.0Bj
option
but
with
does
and
the
not
PART3.0Bj
into
WHOLE.OBj
append
execute
option.
(no
that
by
What
INIT).
are
using
created
happens
the
theK.BINARY
now
same
when
way
SAVE
as
this
2. RUN address
PART2.0Bj
3.
4. RUN address PART1.0Bj
PART3.0Bj
5.
RUN
6.
7.
address
PART20Bj
Execution
of
the
file.
for
PART1.0Bjisstored
loads,
but
for
PART2.0Bj
RUN address
loads,
but
for
PART3.0Bj
RUN address
begins at RUN addressofPART3.0Bj
Example 4:
another
For file,
BICFILE.OBj.
and
that
SEC1.0Bj SEC2.0Bj SEC3.0Bj
loadedontopofSEC10Bj
When
exampleofa
Suppose
has an has no
has an
BICFILE.OBjisloaded,
INIT
address,
INIT
or RUN address,
INIT
address and a RUN address
does
not
does
not
compound
each
segment
but
the
in 2EO and 2E1.
execute
is
execute
is
no RUN address,
following
(no
stored
(no
stored
file
(Figure 4-15),
loads
in 2EO and 2E1,
in 2EO and 2E1,
events
INIT).
INIT).
since
you
considerathree-segment
intoadifferent
for
SEC2.0Bj
occur.
which
which
are
and, in
overwrites
overwrites
nowatthe
areaofmemory
addition,
end
is
42
Selecting
a DOS
Menu
Option
SEG1.0B) is
SEG1.0B)
SEG2.0B) is
SEG3.0B) is
SEG3.0B)
SEG2.0B)
Clearly, load
and
this
option
execute
Example 5:
To
convertanexisting
to
memory Menu address necessarily
spaceonthe
the
procedure
file
witharun
and
option.
the
file
consecutiveinmemory.
loaded.
executes
startingatits
loaded.
loadedontop
executes
executes
then
This poses
occupies,orthe
diskette
showninthe addressof4000
startingatits
startingatthe
gives
you
immediately.
load-only
saveitunderanew
some
than
INIT
of SEG1.0B).
INIT
RUN
great
power
filetoa
problems,asyou
file
couldbecompounded
Therefore,
the
old,
etc.
following
Hex
thatischangedtoa
address.
address.
address
and
flexibility
load-and-go
filename
the
You can
example.
specified
file, using
can
new
avoid
This
in SEG3.0B).
for
creating
you
can
theK.BINARY
sometimes
with
file
would
these
example
load-and-go
large
files
that
load
the
file
in-
SAVE
forget
the
problemsbyusing
illustratesaload
the
final
segments
takeupmore
file.
not
Page 57
In Figure 4-15, a
endofyour dress at
the
as
file
which
entire
one-byte
LOADFIL.OBJ.
your
load
appended
file
locatedatFFOO
Since
file
normally
fileisloaded
this
runs,
into
(in
the
file's
run address is
your
RAM.
load
O. S.
ROM)isappendedtothe
the
same as
file
begins
execution
the
ad-
as soon
L.
BINARY
LOAD
SElECT
K
SAVE
LOADFIL.
SElECT
ITEMORRETURN
฀฀฀฀฀฀฀฀
FILE-GIVE
OBJ/A,
ITEMORRETURN
FILE,
FFOO,
FOR MENU
START,
FFOO"
4000
FOR MENU
END, INIT, RUN
Figure 4-15 Converting an Existing Load-Only File to a Load-and-Co File
Note: This Computer
Use previously If
the 2E1 or 2E2 and 2E3, and-go filename ADDRESS
An
exampleofusing
ple
in Figure 4-16. Since
appendedtoit (see
soon as
instruction
user.
this
selectiontoload
saved
RUN address or
file,
INIT
(see
Example
Menu
the
loadiscomplete.
will
probably
into
with
menu
option
INIT
address was
the
file
will
and RUN addresses are
1 in Figure 4-16). The
option.
this
option
this
file
Example1forK.BINARY
Example 1:
not
RAManassembly
K. or
automatically
without
had
the
be used by a
createdbythe appendedtothe
run ignored file
can
theINoptionisshowninthe
starting
SAVE),
beginning
language
Assembler
after
when
then
address in
the
file
AT ARI Personal
(binary)
fileinLocations being
entered.
you
type
be run
using
Locations will
begin
Editor
file
that
cartridge.
2EO and
In a
load-
IN
after
the
RUN
second
exam­2EO and 2E1 executing
was
the
AT
as
SElECT
L
LOAD FROM WHAT
MYFILE.
SElECT
Example 2:
SElECT
L
LOAD FROM WHAT
BIN
Example 3:
SElECT
L
LOAD FROM WHAT
MAC
SElECT
ITEMORRETURN
฀฀฀฀฀฀฀฀฀฀฀
OSJ/N
ITEMORRETURN
ITEMORRETURN
฀฀฀฀฀฀฀฀฀฀฀฀
FI
L.
0 BJ
ITEMORRETURN
''j)J;,'fJl:J:.$
H L. 0 BJ
ITEMORRETURN
FOR MENU
FiLE?
'&rkirJ.J
FOR MENU
FOR MENU
FILE?
฀฀฀฀฀฀฀฀฀฀฀฀฀฀
FOR MENU
FILE?
฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀
FOR MENU
Figure 4-16 Using the Binary Load Option
Selecting
a DOS
Menu
Option
43
Page 58
M.
RUN
ADDRESS
AT
Example RUN
MENU
loading.
To tion,
Note: Computer
Use gram selection file.
3 in Figure 4-16
address or an
prompt
executeafile
M. RUN AT ADDRESS.
This
instruction
user.
this
selectiontoenter
after
you
is used
INIT
message
that
has no
have
loadeditinto
when
illustratesafile
address. In
will
display
appended
will
probably
the
hexadecimal
the
starting
called
this
case,
on
the
RUN or
not
be used by a
starting
RAM
with
address has
MACHL.OBJ
the
SELECT
screen as soon as
INIT
address, see
addressofan
the
BINARY
not
been
that
ITEM
beginning
LOAD
appendedtothe
does
not
have
OR RETURN FOR
the
file
finishes
the
next
menu
op-
AT ARI Personal
object
file
selection
pro-
This
object
a
N.
CREATE
SAY
MEM.
In Figure 4-17,
Be
very address ple,
you
This
option
contentsoflower
DOS
finished
B and
are
not
SELECT
You
mustbecareful
the
COpy
isting
data.
MEM.SAV.
in
the
MEM.SAV
returnedtothe
the careful that
does
could
allows
the
using
the
usingacartridge,
ITEM
OR RETURN FOR
FILE,
DOS
When
file.Ifthis
instructionsathexadecimal
when
entering
not
contain
lockupthe
SElECT
M
these
executable
system,
ITEM
amY::J
hexadecimal
makingitnecessary
OR
RUN FROM WHAT ADDRESS?
3000
mm:fIfIll
Figure 4-17
youtocreateafileondiskette
user
memory
computer
before
MEM.SAV
it brings
DOS
options,
nottoallow
DUPLICATE
does
not
DOS
cartridge.
saves
the
will
automatically
typing
FILE, or
know
utilizes
occurs,
Using
the Run at Address
are saved
the
diskette
you
simply
B has no
MENU
DOStouse
DUPLICATE
if ALL or
allofuser
your
program
Location
address
code,itwill
RETURN
whenever
RAM-resident
file
return
reload
effect.
prompt.
only
partofyour
memory,itautomatically
create
FOR MENU
called
you
user
DUP.SYS
controltothe
your
You
will
allofuser
DISK
will
notbereloaded
for
into
3000
will
begin
executing.
locations.Ifyou
problems.
youtoreboot.
Option
MEM.SAV
call
DOS.
When
program
RAM.
When
cartridgebytyping
program
memory
options
program
into
havetorespondtothe
when
for
enter
As an
into
which
you
(if
any) in
you
RAM.Ifyou
you
saving
has been saved
invalidates
when
control
exam-
type
have
want
the
an
the
the
ex-
is
44
Selecting
a DOS
Menu
Option
SElECT
N
TYPE
ITEM
fJJJ1II.i'l.1
"Y" TO
OR
RETURN
CREATE
฀฀฀
SElECT
Figure 4-18 Creating a
ITEM
OR
RETURN
FOR MENU
MEM.SAV
FOR MENU
MEM.SAV
File
Page 59
If
you
attempt already ALREADY RETURN FOR on a disketteinDrive
has a
diskette
MEM.SAV
EXISTS and
insertedinDrive1.Note
to
use
MENU.
1.
this
option
file,
the
follow
Figure 4-18
to
createaMEM.SAV
screen
it
illustrates
with
the
that
will
MEM.SAV
display
prompt
the
steps
file
on a
the
message
message SELECT
for
creatingaMEM.SAV
files
can
MEM.SAV
onlybecreated
diskette
ITEM
that
FILE
OR file
on a
WHY MEM.
HAVE A
SAV
FILE?
special
This special be on MEM.SAVisto memorytobe
is
called. panding" return overwrittenasthe
This
operation
you
If
you
can
and
reenter systemtothe and
your
An
exampleofMEM.
1.
Type
2.
Edit
3.
It
4.
Type
5.
Make
to
file
fileondiskette.
the
diskette
overwritten
Essentially,
your
controlofthe
takes
are
working
dosousing
it.
cartridge,
BASIC
LOAD
your
program
works
and
DOS
฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀
your
MYPROC.
allows
youtosave
To be
effective,
insertedinDrive
work.
Once
MEM.SAV
by DUP.SYS
you
are
performingaswap
user
program
computer
contentsofMEM.SAV
about
on a BASIC
MEM.SAV
When
you
programisrestored
SAY usage is in Figure 4-19.
"D:MYPROG.
you
wanttoRENAME
Menu
selection(Efor
OLD.
area. This
systemtothe
seven seconds.
program
finish
the
MEM.SAV
BAS"
and
then
your
RAM-resident
MEM.SAV
1. This
without
using
type
diskette
exists on
willbestoredinMEM.SAV
swap
are
and needtoreturntoDOS
havingtosave
DOS
fileisautomatically
into
user
฀฀฀฀฀฀฀฀฀฀฀฀฀฀
RUN
the
RENAME
(which
your
contents
takes
cartridge,
loaded
and
return
program
Y1t!J!;,rt/JJ.r:J.
original
FILE) and
program
requires
must
notbewrite-protected
diskette,
about
back
filetokeep
then
operation, 21 seconds.
the
DUP.SYS
into
RAM
your
programtodiskette
control
memory.
rename
of
reloaded
as a
temporarily
45 sectors)
the
areaofuser
every
time
thereby
When
file
is in
automatically.
for
some
the
computer
into
memory
backup
your
original
in a
must
if
DOS
"ex­you
turn
reason,
copy.
file
USING
SAV
TO
MEM.
WRITE
ASSEMBLY
LANGUAGE PROGRAMS
6.
Type
B
version
7.
Type the
The
MEM.SAV
in
binary freetowrite the
numberofdrivesinthe currently)toHIMEM are in). See
฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀
SAVE
"D:MYPROC.BAS"
original
data)
name.
file
that
programsorload
AppendixC,Memory
Example:
you
Suppose loaded.
haveabinary
This
typeoffileiscalledaload-and-go
to
BASIC.
BAS is
Figure 4-19 Example
also
allows
share
(which
youtowrite
the
user
datainthe
system and
fluctuates
file
automatically
฀฀฀฀฀฀฀฀฀฀฀฀฀
program
Map.
you
wanttoexecute
With
the
reloaded
to
save
of
MEMSAV
assembly
area
area
from
the
numberoffiles
depending
file.
helpofMEM.SAV,
with
into
RAM.
your
modified
Usage
language
DUP.SYS. This
LOMEM
on
automatically
The
(which
that
which
run address is
SelectingaDOS
Craphics
your
modified
program
programs
means
fluctuates
canbeopen
Mode
as
soon already
Menu
under
(or
you
as it is
Option
load
are
with
con-
you
pro-
45
Page 60
grammed tion.Inthis the to
get DUP.SYS simply
DUP.SYS automatically executed.
into
file
is load-and-go,itwill
backtoDOSisto
program
executing
during
such a
file
case,itis
not
during
a RETURN (RTS) in
the
time
reload
and
and
you
will
not
needtoselect
necessarytohaveaMEM.SAVfileonyour
simply
reboot
the
it is
execute
load
and
your
computer.Ifyou
executionofyour
your
program.Ifyour
loading,
DOS
DUP.SYS
then
binary
will
after
the
RUN AT ADDRESS op-
begintoexecute.
have
not
file,
then
you
binary
keep
trackofthis
the
RETURN in
diskette.
The safest
overwritten
can
recover
file
overwrites
fact
and
your
program
Since
way
the
by
will
is
USING
SAY
TO LOAD
BINARY
MEM.
FILES
Warning;
MEM
the
state.
recover.
This
time
LOAD not
If
your file MEM.SAV, FILE
1. You use
2.
3.
4.
If
the
executionofyour
usedbyDOS.SYS, DUP.SYS,ora
RETURN
section
it is
required.
on
option:
Your dating
Your original
Your
(RTS)
from
Should
file
LOAD
this
occur,
deals
with
loadingabinary
loaded,orloadingafile
does
not
overlay
file
overlays
the
diskette
the
the
original
DUP.SYS.
fileisloadedontopofthe
MEM.SAV
new
MEM.SAV
in
Drive
following
LOAD
BINARY
MEM.SAVisloaded
file.
your
program
you
may
any
partofthe
any
partofthe
1 if
actions
fileinRAM
take
FILE
load-and-go
RAM may
leave
havetopower
file
thatisnottobe
that
contains
DUP.SYS area,
DUP.SYS
the
loadisto
place
after
selectiontoload
from
disk
original
is saved in
MEM.SAV
file
writes
into
area usedbythe
the
computer
up
the
data
for
another
thenaMEM.SAV
file,
you
must
be successful. If
you
execute
your
into
memory
modifying
the
MEM.SAV
any
areas
below
Operating
in an
computer
executedatthe
program.Ifyour
haveaMEM.SAV
an L.
LOAD
file.
overlaying
part
area on
System,
undefined
again
you
do
BINARY
and
or allofthe
the
diskette.
LO
to
same
file
have
invali-
is
46
SelectingaDOS
Menu
Option
5. DUP.SYS is
6. You
remain
RUN
RUN AT ADDRESS at
LOAD
reloaded
in DOS
CARTRIDGE
BINARY
FILE
from
diskette
until
you
at
which
MEM.SAV
BASIC or
which
MEM.SAV
is at
where stance, if but new plete.Ifthe
the
not
file
into
memory.
choose
you
the
either
to:
time
your
fileisloaded
and
you
comeupunder
assembly
time
and
address
wishtoloadaload-and-go
the
original
will
now
new
your
you
new
language
fileisloaded
begin
you
specified.
file
also
file,
then
be in
memory
file
does
executionofwhatever
overlaysapartofDUP.SYS,
not
into
the
cartridge.
into
both
MEM.SAV
when
overlay
memory
controlofyour
memory
file.
the
loadiscom-
DUP.SYS at all,
from
from code
In this in-
and
your
Page 61
Note:
wholly of
the
one
file
If
you
wishtohave
or in
partinthe
DUP.SYS area,
and
then
then ed
loaded
comeupunder
(RTS) is
two
DUP.SYS area and
the
easiest
loading
the
the
load
will
into
RAM.
Since
whether
executed.
filesinmemory
the
waytoachieve
newly
merged
complete
the
new
DUP. SYS is
the
controlofthis
simultaneously,
otherofwhich
thisisby
file.
with
only
the
file
is a
load-and-go
overlaidornot,
file
until
oneofwhich
resides
merging
the
new
a RETURN
wholly
two
file
you
resides
outside
files
load-
and will
into
o. DUPLICATE
FILE
This
option
diskettetoanother.
Drive the
source nate cess is
of
diskette
will
mean
Wild
youdogive your once
The
second
and
beginning
source
Example3,both
In DOS
example
is used if
1. Since and
the
source
complete.
switching
that
cards are
files
are
for
each
diskette
will
therefore
assumes
thereisonly
destination
and
Allowing
your
available
DOS
still
filename
example
with
has
you
have
only
Remember
destination
requiredtocopy
MEM.SAV
with
permissiontotake
copied
illustrates
TEST
only
the
copy
only
one
that
two
filename
three
Example
thatasingle
one
disk
diskettes.
diskettes
DOStotake
file
this
at a
time.
you
wanttocopy.
usingawild
from
one
files
and
all
files
except
files
1:
one
disk
drive
and
wanttocopyafile
disk
drive
must
drive,
you
must
manually
If a
fileisvery
several
over
user
long
files.
will
be
invalidated.
option.InExample2you
over
user
memory
You
will
cardtocopy
diskettetoanother.
with
names
extenders
aretobe
that
those
copied:
long,
times
before
memory
However,
(withawild
havetoalternate
This
satisfy
have
been
that
haveanextenderof.SYS. This MEM.SAV,
always
insert
you
may
the
will
reduce
you
must
will
notice
files
having
example
TEST?
replaced
TEST1,
from
one
be setupas
and
remove
havetoalter-
duplication
the
remember
that
card
diskettesatleast
five
assumes
with
and
pro-
amount
this
even if
filename),
letters
the
wild
cards.
TEST2.
SElECT ITEM OR RETURN FOR MENU
฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀
o
NAME OF
DOSEX. BAS
TYPE CAUTION: A
Y
฀฀฀฀฀฀฀฀
INSERT SOURCE DISK,
INSERT DESTINATION DISK,
FILE
TO MOVE?
฀฀฀฀฀฀฀฀฀฀฀
"y"IFOK TO USE PROGRAM AREA
"y"
INVALIDATES MEM.SAV
TYPE
RETURN
TYPE
RETURN
ITEM OR RETURN FOR MENU
Selecting
a DOS
Menu
Option
47
Page 62
Example 2:
SELECT
o
NAME OF
TE
TYPE
ITEM OR RETURN FOR MENU
฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀
FILE
TO MOVE?
ST?
li!idfJi;$;ZI
"Y" IF OK TO USE PROGRAM AREA
CAUTION: A "Y" INVALIDATES MEM.SAV
฀฀฀฀฀฀
Y
INSERT SOURCE DISK,
TYPE
RETURN
COPYING---D1:
INSERT DESTINATION DISK,
INSERT SOURCE DISK,
COPYING-.. D1:
INSERT DESTINATION DISK,
INSERT SOURCE DISK,
SELECT
ITEM OR RETURN FOR MENU
TESn
TESn
TYPE
TYPE
TYPE
RETURN
RETURN
TYPE
RETURN
RETURN
Example 3:
SELECT
o
NAME OF
TYPE
ITEM OR RETURN FOR MENU
฀฀฀฀฀฀฀฀฀฀฀฀฀฀
FILE
TO MOVE?
"Y" IF OK TO USE PROGRAM AREA
CAUTION: A "Y" INVALIDATES MEM.SAV
Y
INSERT SOURCE DISK,
COPYING-D1:
INSERT DESTINATION DISK,
TYPE
MEM.SAV
RETURN
TYPE
RETURN
48
SelectingaDOS
Menu
Option
INSERT SOURCE DISK,
COPYING---D1:
TYPE
TESn
INSERT DESTINATION DISK,
INSERT SOURCE DISK,
COPYING---D1:
TYPE
TESn
INSERT DESTINATION DISK,
INSERT SOURCE DISK,
SELECT
Figure 4-20
ITEM OR RETURN FOR MENU
Using
the
TYPE
Duplicate
RETURN
TYPE
RETURN
RETURN
TYPE
RETURN
RETURN
File
Option
Page 63
5
BASIC
COMMANDS
USED
TOKENIZED
WITH
DOS
AND
UNTOKENIZED
FILES
MORE
Before the graphs
The characters retain associates variable LIST
The gram.Ithas
BASIC
describing
commands
explain
first
their
are
and
second
commands.
the
will
actonprograms
the
two
type
of
file,
so it
looks
symbol
the
stored.Tostore
ENTER
type,
one-byte
tables
variable
commands.
calleda"tokeniz
USER
BASIC
"tokens"
commands
being
typesoffiles
called
likeaprintoutofa BASIC
name
"untokeniz
each
time
with
the
and
retrieveafile
ed"
insteadoftheATASCI I
INFORMATION
used
stored
that
can
ed."
they
are
memory
file,
is a
with
DOS
and
hold
BASIC
contains
program.
loaded
location
in its
untokenized
condensed
II,
you
needtoknow
retrieved.
and
characterstorepresent
The
programs.
standard
These
saved.
where
the
versionofa
following
AT
ASCII
programsdonot
The
symbol
values
form,
you
BASIC
for
use
how
para-
text
table
that
the
pro-
the
Tokenized
computer
generally
prefertostore
faster
retrievaltoretrieval.
LOAD
Format: Example:
This the BAS, mand,
This program mandasthe gram the
program alone The
previous
programs
console
shorter
and
use less
(LO.)
command
user
program
the
file
SAVE.
command
thatistoo
encounters
without
loaded
program
than
their
LOAD LOAD
is usedtoloadafile
(DOSEX.BAS)
This
can
last
the
from
dependingonany
program
are
moved
by SAVE
untokenized
final
programsinthe
disk
space. A
filespec "D1:
RAM
area.Touse
command
also
be used in
bigtorun in
lineofthe
LOAD
the
diskette.
will
not
and
any
back
and
and
LOAD
commands.
versions.
tokenized
DOSEX.BAS"
fromaparticular
this
command
must
have
been
only
loadsatokenized
"chaining"
your
available
first
program
statement,itwill
However,
variablesordatainRAM
execute
variables
the
until
you
willbecleared
forth
between
For
this
tokenized
version
previously
programs
RAM,
(Figure
automatically
second
type
Tokenized
reason,
form
retains
diskette
to
loadafile
saved
versionofa
(Figure
you
can use
5-1).
Therefore,
program
RUN
(see RU
the
disk
drive
and
versionsofa
many
because
its
using
readinthe
from
they
symbol
in a
disk
called
the
program.
5-1).Ifyou
the
when
mustbeabletostand
the
at
which
another
file
programmers
will
table
drive
DOS
BASIC
have
LOAD
the
next
part
first
program.
time
example).
the
are
load
from
into
EX.
com-
a
com-
pro-
of
the
More
User
Information
49
Page 64
100 110
REM LOAD
Chain program
"01:
CHAIN.BAS"
Figure 5-1
SAVE (S.)
Format: Example:
This
command filespec stores
LIST (L.)
name
programsintokenized
Formats: LIST
filespec
SAVE
SAVE
"D1:
EXAMP2.
causes
the
computer
designatedinthe
filespec device
Examples: LIST
One
useofthe
takeaprogram
can with
any
name
"D:
DATFIL.LST"
LIST
"P:"
LIST
"P:",
LIST
command
from
you
wanttoassign it
10,
user
programisstoredinstandard formattingofdata showninthe D:, D2:, etc.),oryou (e.g..
"P:",
100, 200).
above
storage
format
can
also
examples,
specify
ExampleofProgram
BAS"
systemtosave a
command.
form.
,Iineno
,Iineno
100
in BASIC is
program
very
RAM
(illustratedbythe
AT ASCII
allow
text LISTtobe you
can
line
numberstobe
Chaining
programondiskette
SAVE is
the
similartothe
and
storeitontoaparticular
first
and
notastokens.
much
more
specifyasingle
listedtoa
with
complementofLOAD
SAVE
command
example).
However,
Differencesinthe
flexible
device
designated
than
SAVE. As
(e.g., P:, E:,
device
the
and
as it
drive
the
C;
If
youdonot
willbedisplayedonthe
specifyadevice
screen. The screen (E:) is
after
the
LIST
command,
always
any
the
line
numbers
default
device
you
for
enter
this
command.
In
summary, standard save
tokenized
the
AT ASCII
principle
texttoa
BASIC
difference
numberofdifferent
programs
on a
between
diskette.
LIST and SAVE is
devices
whereas
that
LIST
SAVE can
moves
only
ENTER (E.)
Format:
Example:
This
command filespec as
the
BASIC
data program,
ENTE R ENTER
causes
into
RAM. is received. ENTER,
loaded.Ifthere gram
being
entered
More
User
50
Information
but
are
filespec "D:
L1ST2.LST"
the
computertomoveafileondiskette
The
programisenteredinuntokenized
will
merge
duplicate
will
replace
unlike
the
line
numbersinthe
the
LOAD,
RAM-resident
same
lineinthe
will
not
program
two
programs,
RAM-resident
with
the
referenced
form
and is
interpreted
destroyaRAM-resident
and
the
disk
file
being
the
lineinthe
pro-
program.
Page 65
INPUT/OUTPUT
CONTROL
BLOCKS
RUN
Format: Example:
This
command
is a
combinationofthe
mand
can
"D2:
L1ST.LST"
To
chain
cally,
you
ever,
the
variablesordatainRAM
make
sure
RAM-resident
An
I/O specificationofthe the
buffer
usuallyO.ATARI
10CB
10CB
10CB
RUN
filespec
RUN
"D2:
causes
only
be used
command.
programs
can use a
second
you
operationiscontrolled
address, and
#0 is used by BASIC
#6 is used by BASIC
#7 is used by BASIC
and cause a
RUN
program
have
saved it on a
first
segment
I/O
BASIC sets up
MYFILE.BAS"
the
computertoLOAD
two
commands,
with
tokenized
second
"D:
filespec"asthe
mustbeabletostand
from
the
when
operation,
two
more
for
for
for
files.
segmentofa
first
diskette,asthe
the
second
by an
consistingofthe
auxiliary
eight
10CB's
I/O
to
I/OtoS:
LPRINT,
and RUN
LOAD
program.
I/O
and RUN.
Therefore,
last
alone Before
RUN
segmentisloaded.
Control
control
and
dedicates
E:
CLOAD,
the
designated
However,
you
cannot
filetoload
lineofthe
without
running
statement
Block
typeofI/O,
variablesofwhich
and SAVE
and run
first
depending
the
will
(IOCB). An
the
threetothe
commands.
filespec.
the
RUN
com-
executeaRUN
automati-
segment.
first
wipe
buffer
the
How-
on
any
segment,
out
your
10CB
is a
length,
second
following:
It
is
IOCB's
WITH
INPUT/OUTPUT
COMMANDS
USING THE OPEN/CLOSE COMMANDS
10CB's#1through avoided tioned
Each mands
OPEN
The
itializes specific fined
unless a
above.
input/output
that
can be used in
OPEN/CLOSE INPUT/PRINT PUT/GET STATUS XIO
(0.)
Format:
Example:
OPEN
statement
any
CIO-related
optionstothe
in Figure 5-2.
10CB
OPE N
100
#5 can be used
program
command
OPEN
does
#0 can
#iocb,
neverbeopenedorclosed
must
connection
aexp1, aexp2,
#2, 8, 0,
linksaspecific
control
device
freely,
not
make
havean10CB
with
"D1:
ATARI800.BAS"
10CBtothe
variables
handler.
but
the
dedicated
useofoneofthe
associated
DOS
II are
filespec
appropriate
(see Glossary), and passes
The
parametersinthis
from
the
dedicated
a BASIC
with
following:
10CB's
it. The
device
statement
should
uses
program.
I/O
com-
handler, any
device­are de-
be
men-
in-
More
User
Information
- 51
Page 66
iocb
aexp1
#
Mandatory
A
number
Number
character
between
that
entered
1 and 7
determines
by user.
that
referstoa
the
typeofoperationtobe
deviceorfile.
performed.
Code
4 =
6 =
8 =
input disk output
operation;
directory
operation;
positions
input
positions
file
operation.
file
file.
9 =
end-of-file
append
operation; endoffile. Code9allows without
12
input
and
program
user pressing
output
operation;
input
1miI!Iir::J.
positions
startoffi Ie.
filespec
the
In
aexp2
example,
Device-dependent causes always Specific
Figure 5-2
OPEN
the
AT ARI
0 (zero).
file
ExplanationofOPEN
#2, 8, 0,
auxiliary
820™
designation
"D1:
ATARI800.BAS",
code. An 83 (ASCII S) in
Printertoprint
(see
Section1for
Statement
10CB
toafileonDrive1designatedasATARI800.BASIfthere
Drive1,the ment
opened,
DOS
destroys
the
that
screen
creates
file
displays
one. If a
filebythat
and creates a
an ERROR-129 (File
new
name one. If
Already
already
the
pointertostartoffile.
pointertostart
positions
from
screen
file
sideways;
filespec
Parameters
#2 is
opened
is no
filebythat
exists,
10CB
has
file
otherwise
definition).
the
pointer
editor
pointer
this
OPEN
already
of
position
for
Opened).
to
to
it is
output
name
state-
been
in
CLOSE
The
read/write the the
the the will
(Cl.)
Format: Example:
CLOSE
CLOSE 300 CLOSE #2
command
operations.
10CB
reference
10CB
has
already
same
10CBtoanother
screen. The same
not
getanerror
#iocb
releases
The
number
number
been
openedtoone
device
10CB
cannot
message if
10
OPEN #1, 8, 0,
the
used in
without
you
10CB
following
the
OPEN
be used
closeafile
that
had been
the
mandatory#mustbethe
device
closing,
for
more
liD:
FIl.BAS"
statement
and an
the
that
(see
attemptismadetoopen
first
than
one
has
already
previously
example
ERROR-129
device
been closed.
opened
displays
at a
for
same as
below). If
on
time.
You
20 ClOSE #1
Figure
5-3
ExampleofOpening
Note:
The
END
command
More
User
52
Information
will
close
all
open
files
and
(except
Closing
10CB
a File
#0)
Page 67
USINC THE INPUT/PRINT
COMMANDS
INPUT (I.)
Format:
Examples:
command
This device. assumed
100 100
is usedtorequest
INPUTisthe
tobefrom
5
REM
7
REt"l
10
20 DHl
30 ?
฀฀฀฀฀฀฀฀฀฀฀฀฀
35 3B
40
45
50
55
ss
60
70
75 00
85
90
INPUT
INPUT
OPHi
#2; X, Y #2; N$
data
(either
complementofPRINT.
the
default
**CREATE
฀฀฀฀฀฀฀฀฀฀
#1,
฀฀฀฀฀฀฀฀
฀฀฀฀฀฀฀A฀฀฀฀฀฀฀฀฀
B.,
60)
device
DATA
l,HTH
e.
-n
."
INPUT
REt1 PRHH
RHl
CLOSE
฀฀฀฀฀฀
REt1
฀฀฀฀฀฀
฀฀฀฀฀฀
REt"l
฀฀฀฀฀
REr',
CLOSE
loJRT
$
฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀
#1..
l,JPT$
฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀
#1
฀฀฀฀฀฀฀฀฀
CJF'Et'4
฀฀฀฀฀฀฀฀฀฀฀฀฀
#1.<
:n:
฀฀฀฀฀
฀฀฀฀฀฀
4.,0.."D'
#1.,
฀฀฀฀฀฀฀
PRIt·H
฀฀฀฀฀
(:LCJ::;E
#1
DATA
OAT
DATA
฀฀฀฀฀฀฀฀฀฀฀฀฀
DATA
numericalorstring)
When
(E:).
INPUT
FILEtt
:::
CF.:EATE:::;
l·JPITE.
AFI
฀฀฀฀฀฀฀฀฀฀
DAT"
฀฀฀฀฀
TO
DISKETTE:,;::;:;::
;,
LE:=i::::;:;
FILE
FOR
4
F::
A
DAT"
FI
LE::;:::L
used
withouta#iocb,
uses
record
฀฀฀฀฀
฀฀฀฀฀฀฀
THAf{
฀฀฀฀฀฀฀฀฀฀฀฀฀฀
F.'EAD
฀฀฀฀฀฀฀฀฀฀฀฀
fromaspecified
I/O
(see PRINT).
FILE:';'::::·
60
the
data
is
In Figure 5-4, device). In Line 70, opened
PRINT
This
(PR.
Format:
Examples:
command
device
file.
with
or
the
Line35allows
1)
PRINT{#iOCb}
100 100 100 100
writes
same
Figure 5-4
the
the
INPUT
PRINT #2; X, Y PRINT
? C$
PRINT
an expression
10CB
statement
[{;}
[exp]
#2; A$
"X=",X
reference
Sample
INPUT/PRINT
usertotypeindataonthe
reads
the
p].
[ex
.. ]
(whether
number.
stringorarithmetic)tothe
Program
contentsofthe
keyboard
string
More
User
(default
from
opened
Information
the
53
Page 68
If
no 10CB
whichisthe open,
ERROR-133
numberisspecified,
default
device.Ifthe
displaysonthe
the
system
informationisdirectedtoa
screen.
writes
the
expressiontothe
device
screen,
thatisnot
DIRECT ACCESSING
WITH
THE
NOTE/POINT
COMMANDS
PRINT end-of-line determined arithmetic the
The
charactersinlength.Ifyou IN PUT, it is
NOTE
Files are you can special
performs
keyboard
IN PUT
(NO.)
Format:
Example:
created
wanttoaccess
either
methodofaddressing
whatiscalled
characters
by
the
variable.Itcan
and
statement
besttoIim it
NOTE NOTE
sequentially
read
the
1
RH1
2
RH1
3
REt1
4
RH1
5
RH1
(9B Hex).
lengthofa
terminated
cannot
the
#iocb, #2, A, B
the
records
file
sequentially
฀฀฀฀฀฀
THI::;
FRIX1 THH1
PO
T.
20
DH1
A$(
OPEN
25
27
฀฀฀฀
30
RH1
READ
40
฀฀฀฀฀฀฀
41
฀฀฀฀฀
I
tit
42
฀฀฀฀฀
IF
45 IFLair::
50
฀฀฀฀฀
55
F.H·1
STORE
60
฀฀฀฀฀฀฀฀฀
฀฀฀฀฀
61
62
65
70
90
95
100 pF.:lt·n #2.; 0.; II ..
110 HiD
:;TOREPOHHEF:
REM
฀฀฀฀
PRHH
฀฀฀฀฀฀฀฀฀
GOTO
REt"lIt·iDICATE
record
The
string
alsobethe
by
(generally)
PRINTarecordtothe
sizeofthe
avar,
and
the
PF.:DGRAt1 THE
ON
I
฀฀฀฀฀฀฀
I/O.
sizeofa
printedtoa
lengthofa
mrD:Jri.'I
PRI NTE D
avar
are
normally
in a
file
in a
and
stopatthe
record
-
HOTE
you
::;TATHBH
READ:;
KEYBOARD
DI:3K
ARE
H·j
STORED
40)
#L 8J 0} fl 0:
#2.,:3..0..
LWE
"D:
DATF
PO
OF
IrH:::;
DATA
A$
A:t
k:ETUFli
A:t
#1.,
::<..''(
#L
#2
..
฀฀฀฀฀฀฀฀฀฀฀
4(1
)=0
฀฀฀฀฀฀
L
HiE
Ai
OF
DA:H.
i::i".''';
฀฀฀฀฀
m·iL'y'.,
OF
'y'
#
_.
OF
!I;
฀฀
Records
recordisarbitrary.
read a
are setsofbytes
diskette
stringofcharacters
record
disk
that
recordsto110
accessed
nonsequential
record
want.
CH10
฀฀฀฀฀฀
OF
Ar'JO
:::;TORE:::
FILED:DATF
I
฀฀
0:POI
I L.
DA
T"
.
OAT
II
Fl.:0i'1
f<:
฀฀฀฀
::;TOF
1
((i
DATA.
TO
E:EG
F!tH;ieOF
n.
i
>=:.1
!iE;'r'TE
FI
฀฀
Record
fileorthe
thatislonger
you
will
charactersorless
from
beginningtoend.
manner
you
want;
DATA
IL.
DAT.
urs
.
OA
It 1.'-
# -
.' 1
separated
size can be
formatofan
entered
later
(directly), or,
you
from
than
want
need
by
110
to
If
you
a
Figure 5-5
54
More
User
Information
Sample
NOTE
Program
Page 69
The
formerisvery
and
POINTtogive record computer you table.
This specified
next numberinthe Sector
following
keyboard
The
run, we used
This
and entries
without
know
use a
NOTE
command
10CB.
byteisto
numbers
program
input
printoutinFigure
sample
MEM.SAV
were
time-consuming
you
the
capability
going
through
what
record
command
gets
the
The
file
be readorwritten.
first
arithmetic
range
from1to
listing
intoaspecified
5-5
numbers,
program
files.
45,55,75,80,90,100,110.
but
was
Your
every
you
want.
before
valueofthe
pointer
and
representsasampleofthe
run
variable
sample
you
on a
sector
specifies
719
file
can
and
45
SECTOR
#
=
55
฀฀฀฀฀฀฀
#
=
75
SECTOR
#
=
80
SECTOR
#
=
90
฀฀฀฀฀฀฀฀
#
=
100
฀฀฀฀฀฀฀฀
#
=
l1f1
฀฀฀฀฀฀฀฀
#
=
for
of
record
This
each
current
This
and and run
location.
type
diskette
byte
145
145
145
145
145
145
145
large
files,soDOSIIincorporates
accessingafile
that
precedes
requiresa"note"ofthe
write
and
file
pointer
the
exact
positioninthe
command
the
byte
illustrate
any
that
numbers
stores
current
numbers
one
NOTE
string
forA$upto40
contained
maybedifferent.
8'lTE
8'lTE
8'lTE
BYTE
B'y'TE
B'y'TE
BYTE
randomly.
it,
save
the
for
the
byte
numberinthe
range
wayofusing
program.Inthe
the
#=9
#
12
=
#
15
=
#
is
=
'-roe
#
'::'.1.
=
24
#
=
'-'1-'
#
.:::.':'
=
NOTE
To
gettoa
you
needtolet
file's
sector,
returned
the
absolute
from0to
DOS.SYS, DUP.SYS,
'-'
value
file
using
file
where
disk
sector
second.
124.
NOTEtostore
sample
characters.
Our
sample
the
so
in a
the
the
The
Figure
POINT
5-6 is
(P.)
Format: Example:
POINTisthe bitrary specified specifies the NOTE is
value
file
(points
next
byte
command,
between0and
Figure 5-6
the
sample
POINT
100
complement
determinedbythe
locations
to)
number
124.Ifyou
POINT
the
the
run
#iocb,
(sector
sector
into
sector
#2, A, B
of
which
Sample
that
appearsonyour
avar,
avar
NOTE.
number,
number point
This
arithmetic
and
byte)
the
next
range is
outof
RunofNOTE
command
variables.
into
RAM.
and
the
second
byte
will
between1and
an
opened
Program
screen.
sets
the
file
pointertoan ar-
POINT
The
arithmetic
be readorwritten.Aswith
file,
you
first
719
will
is used
arithmetic
variable
and
get
More
User
when
the
a File
Information
specifies
byte
reading
variable
the
range
Number
55
Page 70
Mismatch 5-8)
contain
gram
shownasthe
When
run,
order
from
error
message.
an
exampleofthe
this
program
the
way
1
REt"1
2
฀฀฀
3
REt'1
4
฀฀฀
113
20
25
30
35 40
45
50
613
70
฀฀
913 95
100 110
1213 130
The
example
prints
it was
writtentothe
฀฀฀฀฀฀฀฀฀
THIS CREATED
THE
OH1
8( 2(1) 1 )
OH1
At.::
RH1
OPEN
฀฀฀฀
฀฀฀฀฀
฀฀฀฀
฀฀฀฀฀฀
FOR
B(
฀฀฀฀฀฀฀
฀฀฀฀฀
#1.,4
฀฀฀฀
#2.,4
฀฀฀฀฀฀
1=0TO20
฀฀฀฀฀
IJ 0
IF
x=e
PRINT
FOR
I
#2.;
):::::<
I
฀฀฀฀฀฀
>::=8(I..฀฀) : POlt-IT#1..
฀฀฀฀฀฀฀
program
POINT
for
the
NOTE
the
keyboard
-
฀฀฀฀฀฀฀
BY
LItES IN
40) DATA
..
,:L
"D;
฀฀฀฀฀฀฀
..
(1
.•
"[I:
฀฀฀฀฀฀฀฀฀฀฀฀
:;.:;..'/
:
B(
I ,J 1
AND
Y=0
FILE
-1
'/=B(I.'
>::.,
y
"SECTOP
listing
(Figure
command
diskette.
POH1T
฀฀฀฀฀
฀฀฀฀฀฀฀฀฀
฀฀฀฀฀฀฀
to
command.
input
฀฀฀฀฀฀฀฀฀฀฀
THE
At-[!
FILF
DATFIL.
DATil
FILE
PO
Ii·r;S .
DAT'!
฀฀฀฀฀฀AN฀฀฀฀฀฀฀
)=1/
THEN
LAST=I:I=20
HJ
฀฀฀฀฀฀฀฀฀฀฀฀
TO
,;:1
฀฀฀฀฀฀฀
1)
# =:
II.;
>::
5-7)
read
by
sector
FILE
PPHH::;
ORDER.
OPDEF
-1
..
"E:'y'TE
and
sample
data
createdbythe
and
DEi'le
# =
run
(Figure
byteinreverse
B :..'
.' 1
pro-
140
After
Figure
you
5-8 is
type
the
150 1613
the
sample
sample
INPUT LPRWT
฀฀฀฀฀฀฀฀
SECTOR
#1
At
I
Figure 5-7
NOTE
run.
#
i At
=
Sample
and
145
POINT
POINT
programs,
8,,!'TE
Program
type
#
=
'-1'-.
f:..O
RUN
mml
110
SECTOR
100 SECTOR 913 SECTOR
145
#
=
145
#
=
#
145
=
BllTE
8'/TE
฀฀฀฀฀฀
=:
24
#
.;.;.
=:
':::'1
it
J :-1
=:
#
J.C
813
More
User
56
Information
Page 71
฀฀฀฀฀฀฀
75
:3ECTOR
C"C'
.J.J
SECTOR
45
฀฀
=
145
#
=
#
145
=
#
145
B'lTE
BYTE
B'lTE
#
=
u:
it
=
# = 9
j,o_'
12
USING THE
PUT/GET
COMMANDS
PUT
(PU.)
Format: Example:
The
PUT
by
the
each
number numbers, data
filesorto
PUT 100
command
IOCB
reference
you
eachofwhich
append
10
20
30 OGRAt'1
40
It-PUT
50 IF
60 IF
70
80
90 ?
T
95
100
110 IF
120
aexp
Sample
(U
AU)
In Figure 5-9
be less
Figure 5-8
#iocb,
PUT #6, ASC
writesasingle
number.
type
intoanarray
should
datatoan
GRAPHICS0:REM
DIt1
A(5!-)JA$(
GRAPHICS
0:1' II
E;":Ai"lPLE":1'
.?
II
Is
this
to
A$:?
A$="
฀฀฀฀฀฀฀฀
A$<
>
"l.JftJ
TEIITHHi
REM
฀฀฀฀
"Ent.er·
฀฀฀
REM
PUT
GOTO
l'JRITE
฀฀฀฀฀฀฀฀
X=0
#1..
#1.,
90
฀฀฀฀฀
8.<
OJ
a.
rtwilber 1ess t.hen 256":
::<
THEN
RUNofPOINT
byte
(value
the
dimensioned
than
256. This
existing
file.
PUT.··..GET
10)
PUT
At'[1
be
a.
฀฀฀฀฀
THEt·i
170
F'R
I
t·JE
11[11
:
฀฀฀฀฀฀฀฀฀฀฀฀
T;-I
NUMBER
CLOSE
i U r ..
#l:GOTO
Program
from
0-255)tothe
PUT
command
as A(50). You can
command
DH10
GETTODI
or' a
฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀
UH II l' II :
.
DAT"
r T
-,Jr-.r•.
i-c,
..;....;.
138
device
is usedtowrite
is usedtocreate
::;f:::
pp
GOTO
40
WPU
specified
enterupto
50
GET (GE.)
Format:
Example:
command
This number (Figure 5-10)
storedbythe
into
GET
#iocb,
100
GET #2, X
reads a
the
specified
illustrates
PUT
command.
Figure 5-9
avar
single
variable.
the
GET
Sample
byte
from
the
device
The
second
command.Itallows
PUT
Program
specifiedbythe
partofthe
IOCB
program
youtoretrieve
More
User
reference
example
each
Information
byte
57
Page 72
Note
that
INPUT/PRINT PRINT to
separating large
inserts
determinearecord.
record
end-of-line
them
unless
ow?"
200 IF
210
zze
with
EOlAfile
you
130
GRAPHICS
:
niPUT
140 IF
150
IF
160
REM
170
OPHi
180
FOR
185
r;£t1
190
GET#2..
PRINT
tiE>::T
230
CLOSE
and GET/PUT are
(EOl)
characters
GET and PUT
created
have
placedanEOl
O:?
:?
A$:?
A$="
t·iO
II
THHJ
A$<
>-
II
'r'E::;IITHHi
READ
E=l
OUT
#2.'
4.'
(1.'
TO
฀฀฀฀฀฀฀฀฀
ROUTINE
II D1;
50 f-iUMBEP<
G:A(E)=G
G=0
THEN
Goro 230
"B'lTE
#
E
#2
incompatible
between
merely
write
by using PUT
(9B Hex)
IIRead
aD
130
E::<Ar1PL
s >
II.;
E.:
"='1
records
single
character
data
1.
OAT
FF.:or1
j G
typesofINPUT/OUTPUT.
and
INPUT
bytestoa
statements
into
in
fi1e
!l
file
looks
the
n
uses
without
like
file.
them
one
FILE::;:::;::
USING
THE STATUS COMMAND
After
you
have
When
you
run
from
the
keyboard
After
you
type
Figure 5-11 is
STATUS (ST.)
Format: Example:
The
STATUS command setofpossible
is a
Figure 5-10
typed
the
sample
the
program
together
the
program,
the
sample
Figure
STATUS
100
STATUS #5, ERROR
command
CIO
command
errorsitchecks
runofthe
5-11
#iocb,
is usedtodetermine
shown
with
type
Sample
avar
and
for
Sample
PUT/GET
in Figure 5-10 it
the
RUN
PUT/GET
BYTE BYTE
BYTE BYTE BYTE
Runofthe
checks
is as
GET
program,
byte
numbersinwhich
mm'fJ
#1
=2
#2
=5 #3=67 #4=54 #5=68
for
several
follows:
Program
will
using
number
program.
PUT/GET
the
condition
waysanerror
type
RUN
print
Program
"it1IJ'm13
the
numbers
each
was stored.
entries
2,5,67,54,68.
(state)ofa
occurs.
entered
file.
The
This
first
Sector legal legal File on File
58
More
User
Information
buffer device filename?
diskette?
locked?
available?
number?
If no, If
no, If no, If
no,
If yes,
then then then then
then
ERROR-161 ERROR-20 ERROR-170 ERROR-170
ERROR-167
Page 73
You can also as
follows:
identify
all
I/O
serial bus errors
with
a STATUS
command.
These are
Device Device
Serial bus Serial bus Serial bus Device
To use this
file. XIO associate a
Figure 5-12
ment.
timeout
not
done
Only
command
Before
acknowledged error data
frame
checksum
command,
then
can
you
form
specific
allows
filename
youtocheck
running
฀฀฀฀฀฀฀฀฀
10
20
OIt1A(50)..A$(10)..0$(1 )
30
GRAPHICS
OGRAt1
40 ?IIIs
Hf'UT
50 IF
60 IF M<
overrun
error
you
must
issue a STATUS
for
this
command
with
the
program,
0:
0:?IIPUT
E::-::Ar1PLEII:?
tl--I
i 5
A$:,';'-
฀฀฀฀฀฀฀฀฀฀฀
฀฀฀฀฀฀฀฀฀
ERROR-138
ERROR-139 ERROR-140 ERROR-141 ERROR-142 ERROR-144
open
the
file command. as it is
the
error
you
the
statusofyour
turn
off
your
REM
TRAP.····STATUS
At·iD
to
be a
READ
฀฀฀฀
16(1
THEt-i
as an
input-only
It is
more
are
tryingtofind.
disk
disk drive.
GET
or' a
฀฀฀฀฀฀
advisable
reliable
drive
DEr"1iJ
TO
฀฀฀฀฀฀฀
1I?1l:
file,
and
with
DI:3K
TE?
GOTO
then
close
that
you
use
you
are
able
a TRAP state-
PP
II
:
4(1
the the
to
70
REM
WRITE
80
TRAP
400:
90 ? II Enter' a
100
PUT#1..
110 IF
12€1
GOTO
฀฀฀฀฀฀฀฀฀
130
ow?
II :
140
IF
150
IF
160
REt'1
1'03
TRAP
II
฀฀฀
FOR
190
GET
200 IF 210
PRIt-H
220
t·iE:>::T CLOSE
230
240
END
IHPUT
:":
X=0
THEN
90
A$:? A$=lIt·iQlI A$<
>IIYES
฀฀฀฀฀฀
400:
E=1
#L G:A(E
G=0
฀฀฀฀
IIB'r'TE
E
#1
ROUTINE
OF'Et-i
#1.,:::..0
number'
CLOSE
(1:?
:?
฀฀฀฀
II
฀฀฀฀฀฀
OUT
฀฀฀฀฀
OPEt-i
TO
50
)=G
GOTO
#
..
1101
:
1e55
t.hen
#l:GOTO
"Read
dat.a in f i 1e n
ao
13(1
I
t·E
#1..4..0) II D1 :
฀฀฀฀
II.;L1l:::1I.;
G
E>::At'1PLl.DATil
256
II :
WPU
130
E>::Ai"1PL1.DAT
More
User
Information
59
Page 74
400
TRAP
NO
ST<
>139
30
410 ? II
420 ? II T
dr-
i
I·}e_"_;
430
CLOSE
40[ff.X1:STATUS
฀฀฀฀
PRIt-H
Is
฀฀฀฀฀฀฀
฀฀฀฀
:
It-4PUT
'yO
disk
i f
0$
#1:GOTO
Figure 5-12 Sample STATUS Program
#1
..
::;T
: IF
"HELP":?
dr-
i;
....
e
turned
฀฀฀฀฀฀฀฀
tur-ned on t.he disk
40
:3T
-:::>-13:::
ST:
on?"
GOTD
A
4
SUBSTITUTING THE XIO COMMAND
FOR DOS MENU OPTIONS
XIO
(X.)
Format:
Example:
XIO
The tions.Itis used wisebeperformed to
openafile, encealocation a
file.
Note
CMONO be
performed.
CMDNO
XIO
100
command
read or
that
(command
3
5 7
9
11 12 13
32
33
35 36
Note:
00
not
use
"0:
OLO,0:NEW."
cmdno,
XIO
is a
when
using
in a
file
XIO
OPEN
GET GET PUT PUT CLOSE STA TUS Request RENAME OELETE LOCK UNLOCK
the
#iocb,
3, #6, 4, 0,
generalINPUT/OUTPUT
you
wanttoperform
the
writearecordorcharacter,
for
readingorwriting,orto
calls
need filespecs.
number)
OPERATION
Record Characters Record Characters
FILE
device
aexp1, aexp2,
"0:
TES1.BAS"
someofthe
DOS
Menu
selections.
is usedtodesignate
XIO XIO XIO XIO XIO XIO XIO XIO
XIO XIO
FILE
name
twice
XIO
when
filespec
statement
functions
These
closeafile,
rename,
just
whichofthe
3, #1, 4, 0, 5, #1, 0, 0,
7, #1, 0, 0, 9, #1, 0, 0, 11, #1, 0, 0, 12, #1, 0, 0,
EXAMPLE
13, #1, 0, 0,
32, #1, 0, 0,
33, #1, 0, 0,
35, #1, 0, 0,
36,
#1,0,0,
renamingafile;
used
XIO
commands
delete,
"0:
TEST.
"0:
TEST.
"0:
TES1.BAS"
"0:
TES1.BAS"
"0:
TEST.BAS"
"0:
TEST.BAS"
"0:
TES1.
"0:
OLO,
"0:
TEMP.BAS"
"0:
ATARI.BAS"
"0:
OOSEX.BAS"
for
special
that
would
are used
store
status, refer-
lock,orunlock
operationsisto
BAS" BAS"
BAS"
NEW"
i.e.
do
opera-
other-
not
use
PROGRAM
Figure 5-13 can
enter
XIO
statementstocreateafile
neededbythe
Line 20
opened
proper
to
the
XIO
statement
erased.
60
More
User
Information
EXAMPLE OF
allows
the
names
defines
withanXIO
file.
The
file.
The
XIO
youtocreateafile
and
birthdaysofyour
program,
the
XIO
next
locks
andtoclose
disk
file0:BIRTHOAY
statement
statementinLine
XIO
statement,
the
filetopreventitfrom
COMMAND
for
for
each
the
for
input.
The
400
in Line 430, closes
USES
each
monthofthe
family
month,tolock
file
creates
when
as FILE$.
XIO
statement
the
being
and
you
file
accidentally
year
into
friends.
are
Then
the
The
and
unlock
through
in Line 170, FILE$ is
in Line 390
and
allows
file
and
the
overwritten
which
program
each
file
with
it.
unlocks
youtowrite
next
line's
you
uses
as
the
or
Page 75
5
GRAPHICS
10
om
0
A$( 5)J0$(
15)J
FlLE$(
Ma·a(20)IERR$(20)INAME$(40)
FILE$="D:BIRTHDAY.
20
30
฀฀฀฀฀฀฀฀฀฀฀฀
100
GRAPHICS
ER
(1-12)11
110
TRAP
120
TSTEND=0
130
MONTH=HH(
140
OTO
145
GOSU8
150
FILE$(12)=STR$(MONTH)
160
EOF=0
170
TRAP
180
TRAP
190
200
210 220
;"
ARE:lI:?
224 225 226
'i..'27
฀฀฀฀฀฀฀฀฀
IF
t10NTH<1OPr-1Ot-ITH>12
100
700:XIO
600:FOR INPUT INPUT
EOF=EOF+1
IF
EOF=1
TEt1P=LEt·K NAME$( NAt1E$( NAt1E$(
IN
(1:?
MOt-HH)
1000+MONTH
12;NAME$
12;DATE$
THEt-i
฀฀฀฀฀฀฀
TEt-1P+
1)=II 1I
30)=II II TEMF'+2,30)=t·lAt-1E$(
II
MOHTH
"PLEASE
I"
TYPE
MONTH
3J#2J4J0JFILE$
1=0
TO
1
?
฀฀฀฀฀฀฀฀฀฀฀฀฀
)
230?NAME$JDATE$ 240
NEXT
299
300 ?
HDAY
310
320
330INPUT 340?"PLEASE
OO-Y)')II
350
360
370 ATEt:GOTO
380
390
19,0JFILE$:GOTO
400 410 420 430
440
450
600
YS
I
I
REM
MKE
NEW
ENTRIESIN8IRTHDAYS
"WOULD
ENTR'y'lI:
IF
At{>"YES;IITHEH
?
"PLEASE
INPUT
฀฀฀฀฀฀฀฀฀
IF
t1Ot-HH<
฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀
TRAP
'lOU
INPUT
฀฀฀฀฀฀
DATEt
1
30J.-)
400:
::<10
LIKE
TO
A$
GOTD
TYPE
฀฀฀฀฀฀฀฀฀฀฀฀
TYPE
PER::;Ot·68IRTHDA'y'
l.JAL(
DATE:t·»
฀฀฀฀
r'1or-ITH:>
361
12
#3;0.,0, FILE$:
410
CLOSE PRINT PRIrH
XIO
XIO
GOTO
CLOSE
฀฀
#2:
::<10
3.,
#2;NAME:t #2;DATEt
12,#2J0;0JFILEt
35;#2;0;0;FILE:t
300
II;
฀฀฀฀฀฀฀
#2: IF
EOF
#2..;::,
=0
฀฀฀฀฀฀
฀฀฀
20)J
OATE$(
t'1Ot-HH
฀฀฀฀
STEP
TEt"1F'+1::.
MAKE
20
฀฀฀฀฀฀฀฀
฀฀฀฀
FILEt
? II
?
(1
Hi ";
A
฀฀฀฀
II
t·iO
20)1
฀฀฀฀฀฀฀
ERR$:G
j'lOH$
฀฀฀฀฀
(t1t1-
'c'
฀฀฀฀฀฀฀
฀฀฀฀
8I
฀฀฀฀฀฀
J D
#2
More
User
Information
61
Page 76
When
you
run
to
see
whetherornot
will
display selected.Ifyou and
their
birthdays names failsafe partofthe birthday
and
birthdays
featuresoyou
next
entry,
610
MONTH=MONiH+l
฀฀฀฀
IF
t10HTH:>12
630
฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀
640 IF
650
700
1001 1002 1003
1004
101-)5 1006
1007
1008
10ti9
1010 1011
1012 3000 MONTH):?
this
the
have
type
฀฀฀฀฀฀฀฀
GOT
I)
30(i
EOF=0:GOTO
MON$=".JAt·iUAR'y'II: t10N$=IIFEBPUAV:'II: t10H$=lIt-t:iRCH MOt·U=IIAF'F:
฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀
t10N$=II.JUt·jE
฀฀฀฀฀฀฀฀
MOt·j$=IIAlIGU::;T
฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀
t-1Ot·i$=1I0CiOBEP":
฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀
t1mj$=1I0ECEr-1E:EF.:!I· FILE$( 12;
FILE$
Figure
program,
there
message
month).
NO
made
for
that
for
the
will
not
When
NOtoeach
THHi
฀฀฀฀฀฀
600
II
฀฀฀฀฀฀฀฀
:
ILII :
F.:ETUPt·j
F.:ETUFt·j
II :
฀฀฀฀฀฀฀฀฀
II
.JJL
'y'!1
:
F:ETUPri
II :
฀฀฀฀฀฀฀฀
12+LHK
5-13
Sample
enteranumber
are
any
entriesinthe
BIRTHDAYS
entries,
the
screen
month.
month
youdonot
In
you
forgetanimportant
prompt
t10tHH=1
GOTO
145
RETUFN
฀฀฀฀฀฀฀฀฀
i
฀฀฀฀฀฀฀฀฀
FfiUPil
F:ETUF.:t·;
฀฀฀฀฀฀฀฀฀฀
฀฀฀฀฀฀฀
r-1;J[·JTH;')
x/o
from1to
IN
followed
will
either
event,
selected
wishtosee
message
Programs
12.
The
file.Ifthere
by
display
and
and
the
the
birthday
another
the
the
screen
succeeding
)=:3TR!<
program
are none,
whatever
namesofthe
will
that
comesatthe
fileormake
program
month
will
will the
month
people
display
another
end.
check
screen
you
the
(as a
first
SAVING
AND LOADING PROGRAMS DATA
WITH
ATARI BASIC
62
More
User
Information
AND
You
cannot
which
an
untokenized Tokenized used form.Inthat
diskette
modify program thenbeloaded
If
you
and
retypeitinto
modifyaprogramintokenized
has
been
and
the
SAVE
as D:
INTEREST.SAV by
backtodisketteinthe
have
erased
saved in
version. Untokenized and
same
INTERESTSAV.
into
100 110
t·-IC
I
tokenized
LOAD section,
the
computer
the
INTEREST.SAV
your
computer.
REM
t**
฀฀฀฀
WT"IF·
PAL
II
This
form,
the
prevents
Files)
commandstostore
you
What
first
loadinginthe
untokenized
from
used
and
the
increasing
the
you
will
modified.
program
sizeofthe
SAVE
INTEREST
....OUTYPE
form.
Therefore,tomodifyaprogram
program
and
dointhe
tokenized
version.
THE
should
unnecessarily.InSection3you
retrieve
command
The
from
diskette,
At10UtHOFPR
firstbemodified
internal
example
program
symbol
programsintokenized to
storeaprogram
that
and
untokenized
refertoFigure
I
into
table
(see
on
follows,isto
then
list
the
version
can
5-14
Page 77
120
฀฀฀
I mLL
130 .'
฀฀฀฀฀฀
140
REAK
150
160 165
170
175 180
190
200 210 22fl 23f1 240
PRIt·n
ppun
B'
....
H:IHT
KE'y'.
PRINT PRUH
฀฀฀฀฀
PRINT
I
฀฀฀฀฀฀
LET
฀฀฀฀
PRItH
LET
A=P::;::(
PRUH
PRINT
LET
฀฀฀฀฀฀฀฀
GOTO
"ANO
II
II
II
THE
"SHmJ
"'y'EAP.
฀฀฀฀฀฀฀฀฀฀฀
'y'OU
TO
P
"I
฀฀฀฀฀฀฀฀฀
฀฀
1
1+R/
100
฀฀฀฀฀฀฀฀
II
= II
฀฀฀฀฀฀฀฀
1
190
฀฀฀฀฀฀฀฀฀
HOl·J
฀฀฀฀฀฀
฀฀฀฀฀
r'1L
II.;
PATE
1/ .;
)··N
.;t·i
= ".; A
RATE
r-1ONE·
PRESS
฀฀฀฀฀
'lEA
....
GRmJS
THE
E:
LIST
AND
Below
are and ENTER AT AR I 810 AT ARI 815
For an
ATARI
1. Use
2.
3.
4.
5.
6.
7.
your
Remove
Type
Type
Now on
diskette.
Type
Type tokenized
ENTER
the
stepstostore
commands.
Disk
Drive,
Dual
Disk
810
System
your
LOAD
"D:
LIST
฀฀฀฀฀฀฀฀฀฀฀฀฀
type
LIST
(Program
NEW
liJJJilf,f1,il(This
ENTER
form.)
Figure 5-14
Follow
and
Drive.
Disk
Drive:
Diskettetoload
System
"D:
Diskette
INTEREST.SAV"
to
see D: INTEREST.SAV on
"D:
INTEREST.L1S"
will
INTEREST.L1S"
Sample
and
retrieve
the
the
second
not
eliminates
Interest
this
first
setofinstructions
setofinstructions
DOS
II.
and
putinyour
฀฀฀฀฀฀฀฀฀฀
appear
on screen.)
the
m'ftfJlJ.
program
(This brings
Program
programondiskette
belowifyou
belowifyou
data
diskette.
the
screen.
to
store
the
untokenized
INTEREST.SAV in
back
the
using
program
memory.)
program
the
have have
LIST
an an
in un-
8.
Type
LIST Using
"Principal"to"Principal
9.
Type
LIST
alreadyondiskette.
10.
Type
ENTER
"D:
INTEREST.L1S"
"D:
INTEREST.L1S"
the
appropriate
Amount."
฀฀฀฀
,,,,
...
฀฀฀฀฀฀฀฀฀฀
keys,
to
store
change
the
program
changeinthe
More
Line
User
160
program
Information
from
&3
Page 78
For
the
AT ARI 815
Dual
Disk
Drive:
1. Use
2.
3.
4.
5.
6.
7. Use
8.
9.
To run
Type 5-15). The
cipal
your
disketteinDrive
Type
LOAD
Type
LIST
Now
type
on
diskette.
Type
NEW
Type
ENTER
the
appropriate
"Principal
Type
LIST
alreadyondiskette.
Type
ENTER
the
program
RUN
niii@j.
number
and 12
System
"D2:
mm!Jto
LIST
(Program
Em.
"D2:
Amount."
"D2:
"D2:
percent
DisketteinDrive
2.
INTEREST.SAY"
see D2: INTEREST.SAY on
"D2:
INTEREST.L1S"
will
INTEREST.L1S"
keystochange
INTEREST.L1S"
INTEREST.L1S"
from
diskette:
The
computer
entries
for
used
the
interest
1 to
load
mm!J.
not
appear
on screen.)
mm:J.
program
mmm
mm!l
retrieves and executes
for
the
rate.
INPUT
to
statement
to
store
Line
store
DOS II,
the
screen.
the
160
the
were
and
place
untokenized
from
"Principal"toread
changeinthe
the
program
1200
dollars
your
data
program
program
(see Figure
for
prin-
If
you
modified
RUN IF
YOU
TYPE THE
AND
THE INTEREST RATE PER YEAR, I
SHOW
YEAR,
PRINCIPAU1200 INTEREST RATE?12
YEAR = 1 AMOUNT
YEAR = 2 AMOU
YEAR = 3
AMOUNT
STOPPED AT LINE 200
wishtosave
programanew
YOU
TO
NT =
Figure 5-15
the
AMOUNT
HOW
YOUR
STOP ME,
=1343.999988
1505.28
= 1685.913576
original
name.
PRESS
Sample
program
OF
PRINCIPAL
MONEY
THE BREAK KEY.
RunofInterest
AND
GROWS,
the
WILL
YEAR BY
Program
modified
version,
give
the
&4
More
User
Information
Page 79
To
editorchangeaprogram
For
savingalisted
Type
LIST
the
existing
To
retrieve
1.
Type from
2.
Type into
3.
Type
Note:
Change
original
"D:
program.
the
NEW IlliiDiIIl. (This
memory.)
ENTER
memory.
LIST
and revised
versionondiskette:
INTEREST.L1S"
listed
"D:
'MiIDillD.
the
nameofthe
follow
the
IJii!MI
versionondiskette:
deletes
INTEREST"
programs.
13lU!l:ll1
modified
steps
below.
and
those
the
tokenized
and
you
programifyou
specified
version
will
bring
lines
willbemerged
and its
the
wishtoretain
symbol
untokenized
table
version
both
to
the
You can also use
you
may
wanttoedit.Adata
It
contains
However,
gram.Sobefore
you
wanttostop
entry.
names
you
1
K
5
7
10
20
25
3e I
35 IF
38
40 45
50
55
58
60 65 70
75
80
T:
85
90
100
the
LIST and ENTER
file
for
an address
mustbeabletoaccess these
continuing,
running
REM
฀฀฀฀฀฀
DIM REM
฀฀฀฀
CHECKAtn
typeinthe
the
program,
THIS
PROGRAM
฀฀฀
CHECKNAME$(40)
฀฀฀฀฀฀
#L
WITH8CREATES
8)
฀฀
=0:
PRIHTIICHECK
NPUT
REM
฀฀฀฀฀฀
REt1
INPUT
฀฀฀฀฀฀
฀฀฀฀฀฀
PRINT
฀฀฀฀฀฀
INPUT REt1 ERROR-
GOTO
REt1 CLOSE
CLOSE
฀฀฀฀฀฀฀฀฀
฀฀฀฀฀฀฀฀฀฀
**WRITE
IICHECK
฀฀฀฀฀฀฀฀฀฀
CHECKAtn
::t¥.
OFHi
฀฀฀฀฀฀฀฀฀
"WHO
฀฀฀฀฀฀
F.:EAD
CHECKNAME$
฀฀฀฀฀฀฀
PR
I
t·n
PINT
20
฀฀฀฀฀฀฀
CLOSE
#1
#1
commandstostore
does
not
directory,
sample
just
฀฀฀฀฀฀
THEIR
"0:
CHECKS"
฀฀฀฀฀฀฀
CHECKNAt1E$=
฀฀฀฀฀฀฀฀฀฀฀฀฀
THEN
DATATODISKETTE**
Aj'10UNTl!;
DATA
loJ!TH
฀฀฀฀
฀฀฀฀฀฀฀฀฀
DATA
FILE
4 IS A
CHECK
DATA
FRor'1
DAr
At:t:
฀฀฀฀฀฀฀฀฀฀฀฀฀
DATA
contain
numbers
typeazero
data
DATA
any
used
files. For
program
A FILE
DATA
II
II
80
FOP
READ
re-.
DI9:::ETTE:::::<::
FI
฀฀฀฀฀฀
and
retrieve
commandsorinstructions.
for
check
that,
you
in Figure 5-16.
for
the
next
OF
CHEC
data
amounts,
need a
check
When
number
FILE**
฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀
฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀฀
THEN
PRIN
files
etc.
pro-
Figure 5-16
Sample
Program to Create a Data File
More
User
Information
65
Page 80
OPEN
AND
To access
filebythat
no retrieve
1.
Turnonthe
CLOSE
the
data
file,
D: CHECKS,
nameonthe
data
fromaprogramondiskette:
disk
diskette,
drive.
you
use
the
BASIC
the
fileisautomatically
command
created.Tostore
OPEN.Ifthere
is
and
2. Put a System
3.
Turnonthe
4.
Type
OPEN
writingtodiskette
Type
Type
and
PRINT #1;
CLOSE #1
102
5.
6.
Figure 5-17 is a runofthe 101, AMOUNT;
for
John
Diskette
computer
#1, 8, 0,
X;
฀฀฀฀฀฀฀฀฀฀฀
the
CHECK
Smith,
READY RUN CHECK NUMBER?100 CHECK WHO
CHECK NUMBER?101 CHECK WHO
into
the
disk
drive.
and
boot
the
system.
"D:
DATA"
file.
DATA,inDrive
': ";Y; ".
sample
NUMBER;
Ceorge
";Z
mmm'J(X,
this
program
Brown,
1.
tells
the
in Figure 5-16.
12.50, 24.35, and 102.67,
and
Heavy
AMOUNT?12.50
WAS CHECK TO?JOHN
AMOUNT?24.35
WAS CHECK TO?GEORGE
This
tells
the
computer
Y, Z are numbers).
computer
for
We
WHO
the
fileisfinished
used
WAS
SMITH
BROWN
the
numbers
for
the
CHECK TO?
to
allow
100,
CHECK
CHECK NUMBER?102
Figure 5-18 shows
CHECK WHO
CHECK
Figure 5-17 RunofSample
you
AMOUNT?102.67
WAS CHECK TO?HEAV.Y
NUMBERW
how
the
information
100,12.51, 101,24.35, 102,102.67,
JOHN GEORGE
HEAVY
Data Program
in Figure 5-17 is
SMITH
BROWN
storedondiskette.
0, 0
Figure 5-18 The
66
More
User
Information
Information
StoredonDiskette
Page 81
ACCESSING
DAMAGED
FILES
There
1. The to
2.
The
are
the
two
typesofdamaged
disk
directory
first
sectorofthe
file
itself.
entry,
files:
which
file), and
contains
the
the
file
name,
directory
numberofsectors in
the
pointer file.
(points
Should
If Found) DI RECTORY in latter the
Let us say File 1 =
Note: other COpy problems.
the
the
sector
the
DISK
DISK
will
appearonthe
file,
an ERROR
case,
you
range by
You can
sectors
the
good
DIRECTORY
entrydonot
only
after
filesonthe
DIRECTORY
164
maybeabletoretrieve
initiating
entrybedamaged,
entry
was
accidentally
screen. If
coincide
(File
Number
the
Get
(are
the
READY
10 OPEN #1,4,0,/ID:FILE.1/1
20 OPEN #2,8,0,/ID:FILE.2/1 25 TRAP 50
GOTO
#1,A
#2,8
30
30 GET 40 PUT 45 50 CLOSE #1 60 CLOSE #2
Figure 5-19
the
read
the
damaged
the
damage
damaged
file,
sectors
cannot
that
diskettetoa
there
is no
waytoaccess
deleted,
numberofsectors
shorter)
Mismatch)
that
Byte
Get
and File 2 =
be accessed. As a result, it
than
will
portionofthe
program
Byte
Program
fall
BEFORE
new
an ERROR
indicatedinthe
the
actual
appearonthe
file
in Figure 5-19.
the
recovery
the
damaged
diskettetoavoid
the
file.
170
(File
Not
DISK
numberofsectors
screen. In
which
falls
tile.
sector(s).
wouldbebest
any
this
within
All
to
further
THE AUTORUN.
SYS
FILE
If
the
file
itselfisdamaged,
transfer
When
automatically boot returnedtoyou. thatisloaded, executed
Figure 5-20 ifacartridge DOS
allow
each
an
AUTORUN.SYS
the
system. This
as soon as
illustrates
initialization
the
use
good
sector
be
loaded
entire
The
AUTORUN.SYS
but
not
executed;
the
the
is present.
routine.Ifduring
of
you
can also use
from
the
damaged
file
exists on
into
RAM
and
executed
process is
loadiscomplete.
useofAUTORUN.SYStobootupdirectly
After
execution,
before
completed
file
or, it
couldbeobject
your
the
the
Get
Byte
file
intoarecovery
the
diskette
can be
AUTORUN.SYS
application,itdoes
return,
in
Drive1,that
(if
appropriate)
before
data;itcan also be
the
controlofthe
code
normally
system
program
thatisloaded
not
initialization
More
which
file.
file
every
time system is
object
and
into
DOS
returnstothe
return,orif
must
User
Information
will
will
you
code
then
even
you
be
67
Page 82
completed storage COLDST
before
locations:
shouldbeclearedto00 and
proceeding.
COLDST
This is
at address 244 (Hex) and
donebymodifying
BOOT
is setto01.
two
BOOT
Operating
at address 9 (Hex).
System
program
The
jumps
indirectlytothe
If
youdonot
using
BASIC POKE
decimal
When
using
theK.BINARY
Notice computer enter
BASIC,
haveanAssembler
numberstobe
these codes have been
that
there
and
simply
;
Autorun
; Run DOS
listed
below
statements
is no
then
turnitback' on,
type
sets these
start
DOS
vector.
Editor
and
entered
is as
Decimal Address
15000 15002 15005 15006 15008
entered
SAVE
selection
number
Program
without
entered
B or press
goingtocartridge.
two
locationstothe
cartridge,
then
saving
follows:
in BASIC,
from
for
the
you
should
you
the
Binary
Decimal
162,00, 142,68,02,
232,
134,09,
108,10,00,
type
the
DOS
Menu.
IN IT
parameter.Ifyou
now
bootupdirectly
ImmZJrmii
proper
can
create
File in DOS. The
Codes
DOS
mm:.
value
the
equivalent
to
save
turn
into
and
then
list
the
off
your
DOS. To
file
of
file
COLDST
BOOT DOSVEC
= $244
= $09
= $OA
* = 3A98
(HEX
CODE)
DOSGO
LDX #0
STX COLDST
INX STX
BOOT
JMP (DOSVEC)
Si2EO
* =
.
WORD
.
END
DOSGO
SELECT
ITEM
A200
8E
4402
E8 8609 6C OA 00
run address at
983A
OR RETURN FOR
2EO
MENU
Kli.lII.!!m
SAVE-GIVE FILE, START, END
AUTORUN.SYS, 3A98,
SELECT
Figure 5-20
68
More
User
Information
An
AUTORUN.SYS
ITEM
OR RETURN FOR
Example
3AA2"
for
the
Advanced
[,INIT,RUN] 3A98
MENU
User
Page 83
6
ADDITIONAL INFORMATION
ATARI DISKETTES
ABOUT
AT ARI that each scratched,orcontaminated.
Each The Drive density technique much
same to double-density should
Onceadiskette
not
double-density typesofdrives
the
Diskettes
used on cassette tape. Each AT ARI
is sealed in a
disk
ATARI
is a
diskettes
datainthe
way.
guarantee
not
be used in a
typeofdriveonwhich
THE
are
drive
requires
810
Disk
double-density
and
requires a
The
differenceisthat
they
diskette
use a
blank,
has been
double-density drive. and
DISK
thin,
mylar,
special
same space.
will
diskettes,
black
the
diskette
Drive
is a
disk
single-density
higher
quality
work
with
should
The reverse is also
workaswell
single-density
formatted
be sure
it was
circular
jacket
single-density
drive.
Both
the the
disk
formatted.
sheets Diskette designedtoprotectitfrom
created
The essential
diskettesisthat
recording
typesofdiskettes double-density double-density
diskette
for
use
drive
unless
true.Ifyou
that
you
DRIVE
covered
is 5 1/4 inches in
specificallytooperate
drive
and
difference
the
surfacesothat
diskettes
recording
on a
single-density
on a
double-density
withasingle-density
you
reformat
have
clearly
label
SYSTEM
withanoxide
the
ATARI
double-density
it can
are
manufacturedinthe
have
techniques.Ablank
a system
each
similar
diameter
being
with
that
815
Dual
between
been
disk
disk
disk
the
disketteonthe
diskettetoshow
store
drive,
drive
that
double-
recording
twice
pretested
but
drive.
uses
to
and
bent,
drive.
Disk
as
you
it can-
both
ATARI810
DISK
DRIVE
ATARI 815
DISK
DRIVE
DUAL
The AT ARI 810
ties.Ituses (CX8104), (CX8202), and AT ARI 810
thousand)
(88
which
gives it an
notinconstant
The
AT ARI 815 recording bytesofdataoneach
Disk
810
Like
the
AT ARI 810
diskettes,
Dual
815 ATARI Eachofthe device
810
number.
Disk
Drive
standard51/4
ATARI
technique.Asector
Drive
but
Disk
bytes.
can
Drive
Disk
two
810
The
automatic
operation,
Dual
Disk
can
storeinone
Disk
store
has a
Drive,
drives
is a
inch
Blank
Formatted ATARI
stand-by
but
Drive
sector,
Drive,
over
built-in
the
ATARI
within
single
drive
with
flexible
Diskettes
810
waitstobe
unit
on a
whichistwice
sector.
this
163K
microprocessortocontrol
815
the
diskettes:
(CX8100),
Diskettes
Disk
capability.
contains
diskette
dual
bytesoneachofits
Dual
AT ARI 815
II (CX8111),
Drive
"told"
two
createdonthis
the
drive
also
Disk
Additional
single-density
AT ARI 810
ATARI
containsabuilt-in
This means
when
it is needed.
drives
numberofbytes
uses
standard
Drive
has a
Disk
Drive
Information
recording
Master
810/815
eachofwhich
the
and
uses a
drive
two
diskettes. the built-in
has its
About
the
Diskette
Blank
Diskettes
stores 88K
microprocessor
disk
drive
double-density
can
store
that
the
51/4
inch
The
drives.
Unlike
power
own
individual
Disk
Drive
capabili-
motor
256
AT ARI
flexible
AT ARI
the
supply.
System
II
is
69
Page 84
DISK DRIVE
OPERATION
When
you matically spins
within
is
placed
When
the
over
you
computer
areasofthe
When
you
so
the
areaofthe
drive's
microprocessor
insertadiskette
placedonthe
its
protective
the
read/write
store
data
on a
console
oxide
retrieve
into
coatingofeach
data
diskette
into
the
disk
drive
hub
and
jacket.
When
surface.
diskette,
coded
the
electrical
diskette
fromadiskette,
where
controls
the
the
drive,
the
diskette
you
access
disk
drive
pulses. These pulses
while
the
disk
dataisstored
positioning
the
drive
and
spindle
holeinthe
is seated.
the
diskette,
converts
the
the
disketteisspinning.
positions
passes
timingofthe
The
circular
the
data
it receives
magnetize
the
beneath
diskette.
centerisauto-
diskette
magnetic
head
from
minute
magnetic
head
it.
The
disk
70
Additional
Information
About
the
Disk
Drive
System
Page 85
APPENDIX A
ALPHABETICAL DIRECTORY
Note:
The
RESERVED
WORD
CLOSE
DOS
END
ENTER
OF BASIC RESERVED
USED
periodismandatory
ABBREVIATION
WITH
after
all
CL.
DO.
E.
DISK OPERATIONS
abbreviated
I/O clusionofI/O
This The Passes
Stops off CONT. in a
I/O in lines RAM, you before
RAM.
keywords.
statement
command
menu
sounds.
program.)
command
untokenized
control
program
(Note:
are
entered
ENTER
don't
using
contains
want
WORDS
BRIEF
SUMMARY
OF BASIC STATEMENT
usedtocloseadisk operations.
causes
from
execution,
Program
END
usedtoretrievealisted
will
ENTER
the
menutobe
all
DOS
utility
cartridgetoDOS
closes
may
may
be used
(textual)
whenaprogramisresident
programs
merge
to
form.Ifa
loadaprogram
be
the
two
merged,
files,
restarted
more
fileatthe
displayed.
selections.
utilities.
and
than
program
program
programs.
type
con-
turns using
once
or
in
If
NEW
into
GET
INPUT
LIST
LOAD
NOTE
OPEN
GE.
I.
L.
LO.
NO
O.
Used
with
disk
of
data
intoaspecified
device.
This
command
device.
This
ofaprogramtoa
I/O
in
This
number
pointer
Opens
operations.
allowed
The
command
command
tokenized
command
and
in its
the
on a
default
form fromaspecified
the two
specified
Determines
file.
operation
requests
device
outputs
specified
usedtoretrieve
stores
current
arithmetic
to
variable
data
is E: (Screen
the
untokenized
device.
the
absolute
byte
variables.
file
for
the
inputasingle
fromaspecified
fromaspecified
Editor).
version
a saved
numberofthe
input
type
device.
disk
or
of
operations
Append
program
output
byte
sector
file
ix A 71
Page 86
RESERVED
WORD
POINT
PRINT
ABBREVIATION
P.
PRo
or?
This
command
toaspecified
diskette.
I/O
command
to
specified
BRIEF
OF BASIC
is used in
location
causes
output
deviceinrecord
SUMMARY
STATEMENT
setting
(sector
output
from
the
and
byte)onthe
the
format.
file
pointer
computer
PUT
RUN
SAVE
STATUS
TRAP
XIO
PU.
R.
S.
ST.
T.
x
Causes
character, device.
Both
filespec.
I/O ofaprogram device.
Calls
Directs
case
tain
Ceneral
form
commands.
output
from
loads
statement
status
execution
ofaprogram
controlofprogram
I/O
DOS
ofasingle
the
and
starts
usedtorecordatokenized
in a
specified
routine
statement
Menu
for
toaspecified
error,
selections
byteofdata;
computer
execution
specified
allowing
and
recover
used in a
file
device.
programtoper-
and
i.e., a
toaspecified
of
designated
version
on a
specified
line
number
usertomain-
from
errors.
specified
I/O
in
72
Appendix
A
Page 87
APPENDIX B
NOTATIONS AND TERMINOLOGY
SYSTEM RESET
RETURN
CAPITAL LETTERS
,./:;
"
Press
the
IftiWilil11ii1
Press
the
ii1iimmlkeyonthe
Brackets.
Ellipsis. An repeat do
so.
Braces. astowhich statementorcommand.
Capital functions
Punctuation in
the
bracketsorbraces.
Brackets
the
optional
Items
letters
you
format
enclose
ellipsis
item
marks.
following
item
stacked
you
are usedtoindicate
must
type
These
ofacommand
USED
keyonthe
keyboard.
optional
any
numberoftimes,
verticallyinbraces wanttoinsert.
exactlyasthey
punctuation
WITH DOS II
keyboard.
items.
an
iteminbrackets
commands,
or
statement.
indicate
Select
appear.
marks
indicates
but
are
you
only
onetoputinyour
statements,
mustbetypedasshown
However,
you
not
required
haveachoice
and
other
do
not
can
type
to
cmdno
exp
aexp
aexp1
aexp2
filespec
10CB
Command
Expression. In arithmetic,
Arithmetic constant, operator
Arithmetic auxiliary
Arithmetic
second OPEN. 820
to
83.
File the
Drive
Input/Output evaluatestoa deviceorfile. should
number.
logical,
expression.
or
(aop).
expression1.This
I/O
expression
auxiliary
Usuallyitis set
Printertoprint
specification.
device
1.
only
whereitis
be usedifthe
Used in
this
manual,
and
two
arithmetic
control
I/O
sideways,
Usuallyastring
Control
number
10CB
XIO
commands.
expressions
string
expressions.
Generally
expressions
arithmetic
byte
when
used in
2. This
control
toO.If,
located,
Block
from1to7.The
0 is
reserved
arithmetic
byte
however,
you
e.g.,
(IOCB). An
Screen
are
divided
composed
when
would
expression
"D1
for
BASIC
Editorisnottobe used.
ofavariable,
separated
expression
commands
expression
used in
you
wanttodirect
set
this
:MYPROG.BAS"
arithmetic 10CB
for
into
byanarithmetic
represents
suchasOPEN.
commands
arithmetic
that
referstoa
expression
is usedtorefertoa
the
Screen
three
function,
the
represents
such
the
ATARI
expression
file
forafile
Editor
types:
first
the
as
and
on
that
and
Appendix
B 73
Page 88
lineno
Line
number.Aconstant
deferred
o
through
mode
32767.
execution.
BASIC
Line
that
identifiesaparticular
program.Aline
numbering
number
determines
program
canbeany
the
order
line
integer
of
program
in a
from
var
avar
mvar
svar
Variable. metic
(svar).
Arithmetic Variable must
Matrix
Any
variables
variable.
names
start
withanunreversed,
variable.
arrayormatrix.
String
variable.Alocation
variable.Inthis
(avar),
A
matrix
location
canbefrom1to
Also
calledasubscripted
whereastringofcharacters
manual,
variables
variables
whereanumeric
120
alphanumeric
uppercase
alphabetic
(mvar),
variable.
are
classifiedasarith-
or
string
value
characters,
character.
An
elementofan
maybestored.
variables
is
stored.
but
74
Appendix
B
Page 89
APPENDIX
C
Note:
ERROR
NO.
2
3
4
Error
messages 2
I
nsuffic
Memory
Value
Too Variables
AND
through
ERROR
NAME
ient
Error
Many
21
HOW
should
You statement,orto
Delete
memory.
Manual
Either negative pected
You of no
Reference
ERROR
TO
only
occur
when
do
not
have
any
unused
(See
for
memory
the
expected
or
the
range.
have
exceeded
variable
longer
names
applicable.
Manual.)
MESSAGES
RECOVER
runningaBASIC
CAUSE
RECOVERY
enough
dimensionanew
Section
value
AND
memory
variable
conservation.)
the
and
namesoradd
11,
positive
was
maximum
must
(See
string
BAS IC
not
within
delete
Section
program.
to
integer
number
any
11,
store
the
variable.
more
Reference
was
the
ex-
(128)
that
are
BASIC
11
12
5
6
7
8
9
String
Length
Error
OutofData
Error
Line
Number Creater 32767
Input Statement
Error
Array String
Error
Floating Overflow! Underflow
Line
Found
Than
or
DIM
Point
Not
You
have
attempted
a
location
you
have
DIM
You statements
Check suchasCOTO
You value able
The
DIM
or
32767 mensioned; dimensioned
You
have
fer to a
1 E-99,orgreater
A
COSUB,
existent
past
used
size.Donot
do
not
have
for
line
number
have
attempted
intoanumeric
types
arid/or
size
for
strings;anarrayorstring reference arrayorstring.
attempted
number
COTO,
line
number.
to
read
fromorwrite
the
dimensioned
zero
as a
reference
use
zero
as an
index.
enough
the
READ
and
RESTORE.
input
exceeds
with thanorequalto1 E-98.
or
data
statements.
references
to
input
variable
data.
5460
was
to
divide
an
absolute
THEN
Check
for
made
by
referencedanon-
string
index.
in
your
in
statements
a
non-numeric
your
numeric
was
to
zeroorto
value
less
into
size
Enlarge
DATA
vari-
arrays
redi-
an
un-
re-
than
or
Appendix
C 75
Page 90
ERROR
NO.
13
14
15
ERROR
NAME
No
Matching
FOR
Line
Too
Long
Error
COSUBorFOR Line
Deleted
NEXT
A matching
You
have
buffer
A
NEXT
tered
and
deleted
statement
FOR.
exceeded
length
or the
since
CAUSE
RECOVERY
was
the
RETURN
corresponding
the
last
statement
time
AND
encountered
BASIC
line
FORorCOSUB
the
program
without
processing
was
encoun-
was
a
was
run
16
17
18
19
20
21
Note:
other
128
129
The
following
accessory
RETURN
Syntax
VAL
Error
LOAD Too
Device Error
LOAD
are
devices.
BREAK
10CB*
Open
Error
Error
Function
Program
Long
Number
File
Error
input/output
Further
Abort
Already
Check
statement.
The syntax.
The string.
You
program
You tween1and
You
BASIC created
errors
that
informationisprovided
User execution
OPEN
10CB
your
computer
Fix
string
don't
enteredadevice
attempted
tokenized
with
result
during
hit
statement
already
program
encounteredaline
the
line.
in a
VAL
statementisnotanumeric
have
enough
number
7.
to
loadanonload
file.
the
SAVE
command.
the
useofdisk
with
the
auxiliary
key
during
within
in use
for
for
memory
Tokenized
I/O
a
another
a
missing
with
to
that
was
drives,
hardware.
operation.
program
fileordevice.
COSUB
improper
load
not
file,
not
files
printers,
Stops
loop
your
be-
a
are
or
or
76
Appendix
You
have
tried
to
130
*IOCB
C
referstoInput/Output
Nonexistent Device
Control
error
850™
232-C currence without "D:MYFILE"
Block
handler
can
Interface AUTORUN.SYS
Check
Then
load
table;
a
your
occur
of
device;
I/O
and
this
accessadevice
i.e.,
the
deviceisundefined.
when
tryingtoaccess
Module
errorisspecifyingafilename
command
initialize
file.
i.e..
without
Another
"MYFILE"
for
the
correct
the
not
theATARI
running
common
instead
correct
handler.
in
the
This
the
RS-
device
oc-
of
Page 91
ERROR
NO.
131
132
133
134
ERROR
NAME
10CB
Write-
Only
Illegal Handler Command
Device/File Not
Open
Bad
10CB
Number
You
have
attempted
for
Write-Only.
(read/write).
This
is a
CIO passed command mandtoa special command
You your wrong
You For BASIC, allow tridge
16
to
commands.
code
have
not
OPEN
file
specification.
have
useof10CBO.The requires
and
less
CAUSE
RECOVERY
to
read
Open
the
error
code.
the
device
is
either
handler
foranillegal
opened
statementorfile
tried
to
the
range
the
than
128.
< = 2
that
Check
this
use an
is 1-7 as
10CB
handler
hasn't
indextobe a
AND
fromafile
file
for
readorupdate
The
common
is
or
is a
special
implemented
your
XIO
command
fileordevice.
I/O
statement
illegal
Assembler
10CB
BASIC
opened
illegal.
or code.
does
Editor
multiple
code
The
com-
any
10CB
Check
for
index.
not
car-
a
of
135
136
137
138
10CB
Write-
Only
Error
EndofFile
Truncated Record
Device
Timeout
You
have
triedtowritetoa
is
open
for
Read-Only.
update
Your file.
This are size
maximum
to
mand oriented)
When
the by device wrong spec); it is period;orit is cassette, mismeasuredorthe
Examine secure turned Check ber. have
(read/write).
input
file
is at
error
typically
readingislarger
specified
use an I N
on a
you
device
the
OS
numberiswrongorthe
device;
and
on
your Retry the
disk
in
record
PUT
f11e
that
commands,
sentacommand did
not
for
that
the
unable
not
the
tape
all
connections
check
and
set
command
the
command
drive
deviceorfile
Open
the
endoffile.
occurs
the
size
(record-oriented
was
respond
device
device
to
connected.Ifthe
baud
tape
the
for
checked.
when
than
the
maximum
call
to
is
119
bytes.)
created
resultsinthis
over
within
command.
user
is
not
respond
disk
the
for
within
rate
improperly
to
make
drivetomake
correct
the
correct
If
this
file
for
No
more
the
record
CIO
When
typeofcom-
with
PUT
problem.
the
serial
the
period
Either
specified
there
the
device
may
have
positioned
sure
drive
drive
error
that
write
data
you
record
(BASIC's
trying
(byte-
bus,
set the the
(wrong
proper
is a
been
they
are
sure
it is
number.
num-
recurs,
or
in
Appendix
C 77
Page 92
ERROR
NO.
139
140
ERROR
NAME
Device
Serial Error
NAK
Frame
The
device parameters device illegal the
computer. illegal check error,
cannot
such
might
commandorreceived
parameters your
I/O
so
refer
device.
Bit7of
means
the
This more
checked. oneata settes,
SKSTATin
that
communication
computerisgarbled.
is a
very
rare
than
once,
You
time
try
the
recovery
CAUSE
RECOVERY
as an
also
Check
and cables to
error
have
can
to
isolate
AND
respond
unaddressable
have
receivedagarbled
improper
your
I/O
retry
the
This
is a
the
documentation
the
POKEY
from
anditis
your
deviceorcomputer
also
remove
the
problem.
suggestedinError
because
sector.
command
command.
device
chip
is set.
the
fatal.Ifit
the
peripherals
of
data
specific
for
device
occurs
For
138.
bad The
or
from
for
Also
that
This
to
cas-
141
142
143
144
145
Cursor of
Range
Serial
Out
Bus
Overrun
Checksum
Device
Error
Illegal
Screen
Mode
Done
Error
Your
cursorisout
graphics
mode
you
parameters.
Bit5of did
not
SKSTATin
respond
f ast
interruptorPOKEY on
the
serial
bus process it
occurs
the
more
previous
than
serviced.
The
communications
bled.
The
checksum sameasthat by
the procedure or
software
The
deviceisunable
mand.
You protected unable Remove
write-protect
other
devices.
You
have
an
illegal
graphics
calculated
computer.
becauseitcouldbeeitherahardware
problem.
have
disketteordevice,orthe
to
read/write
the
write-protect
switch
triedtoopen
graphics
mode
callorthe
of
range
for
chose.
POKEY
Change
is set.
enoughtoa
receivedasecond
before
word.
once,
on
the
the This
have
serial
sentbythe
for
the
Thereisno
to
either
to
standard
executeavalid
triedtowritetoa
the.
tab
See
specific
the
Screen
mode
number.
aux2
the
particular
the
The
computer
serial
bus
8-bit
computer
is a
rare
your
computer
bus
deviceisnot
frame
received
recovery
disk
requested
or
turn
manuals
Editor
Check
byteinthe
pixel
input word
could
error.
are
com-
write-
drive
sector.
off
your
10CB.
If
gar-
the
is
the
for
with
78
Appendix
C
Page 93
ERROR
NO.
ERROR
NAME
CAUSE
RECOVERY
AND
146
147
160
161
162
163
Function Implemented
Insufficient RAM
Drive Error
Too OPEN
Disk
Unrecoverable System
Number
Many
Files
Full
I/O
Not
Error
The
handler tryingtoPUTtothe commands command correct
Not
enough
selected.
mode
You
specifiedadrive
did
not
drrve
was Section1of byte
1802
You
don't
on
another number sure no
You
don't diskette. sectors.
This
error
bug
in it.
Try
using
does
to
the
for
the
device.
RAM
Add
more
that
doesn't
allocateabuffer
not
powered
this
manual.
for
numberofdrive
have
any
file.
Check
of
allocated
files
are
open
have
any
Use a
other
means
Your
different
DOSorthe
DOS.
not
contain
keyboard
keyboard.
right
for
memory
requireasmuch
number
upatboot
free
sector
that
more
that
command
the
graphics
for
Check
sector
Location
should
free
diskette
the
File
diskette
the
or
or
that
the
buffers
buffers.
function;
issuing
Check
your
and
mode
use a
graphics
memory.
was
not
drive,oryour
time.
Refer
your
filespec
allocated.
buffers
1801
Also
notbeopen.
sectors
that
has
Manager
maybebad.
e.g.,
special
I/O the
you
1-8,
to
use
for
the
make
on
this
free
has a
to or
164
165
166
167
168
File
Number
Mismatch
File
Name
POINT Length
File
Locked
Device
Invalid
Error
Data Error
Command
The
structure values sector off
have
on
Your it. Check filespec and
The
than Check
You poses tionCto mand.
You issued an software
are
allocatedtoanother
and
retry
lost
diskette,
file
byte
125
the
have
other
that
device
of
wrong.
program
the
file.
then
reformat
specification
count
(single
interface.
in
density)
parametersinyour
triedtoaccess a
than
unlock
illegal
and
retry
the
fileisdamaged
Oneofthe
file.
execution.Ifthis
Trytorecover
the
has
illegal
remove
the
reading
the
Check
illegal characters.
POINT
or
253
it. Use
file
and
command
the
the
command.
or
file
links
pointstoa
Turn
the
fails,
the
other
diskette.
characters
call
was
(double
POINT
locked
documentation
DOS
retry
to
statement.
file
Menu
your
the
Append
POINT
system
you
files
greater
density)
for
pur-
op-
com-
device
ix C 79
in
for
Page 94
ERROR
NO.
ERROR
NAME
CAUSE
RECOVERY
AND
169
170
171
172
173
Directory
Not
File
POINT
Illegal
Bad
Sectors
Format
Full
Found
Invalid
Append
Time
You
have
used
all
the
space
allocated
for
the
Directory.
You
have
in
the
tion
A
filename
triedtoaccess a
diskette's
to
check
Directory.
the
andtobe sureitis on
file
Use
correct
that
DOS
spelling
the
doesn't
Menu
diskette
of
exist
op­the
you
are accessing.
have
You opened
your
usedtoopen
You using files. using
at
The formatting you this your
triedtoPOINTtoa
for
UPDATE.
OPEN
statement
the
file.
have
triedtoopenaDOSIfile
DOS
II.
DOSIIcannot
COPY
disk
cannot
error
disk
the
DOS
II.
drive
a
diskette.
formatadiskette
occurs
drive
DOSIfiletoa
has
found
with
may
need
Check
or aux1
Use
more
byte
the
parameters
byteofthe
appendtoDOS
DOSIIdiskette
bad
another
with
than
repair.
in a
for
sectors
diskette,
bad
sectors.
one
file
not
10CB
append
while
diskette,
of
I
as
If
80
Appendix
C
Page 95
APPENDIX D
ADDRESS CONTENTS
Decimal
65535
49152
49151
32768 8000
32767
varies
varies
varies
6781
6780 1A7C
5440 1540
5439 153F
1792 0700
1791
Hexadecimal
FFFF
COOO
BFFF
7FFF
cos
2S
1D7C 247C
1A7D
20
06FF 0600
38
C
DOS
FOR
OPERATING SYSTEM
CARTRIDGES
SCREEN DISPLAY AREA
USER PROGRAM AREA
SB7 SB6 SB5 SB4 SB3
Sector
Sector Drive4Buffer Drive3Buffer Drive2Buffer Drive1Buffer
MINI-DOS
(RAM
FILE
USER RAM
II
32K
Buffer Buffer
RESIDENT PORTION OF DUP)
MANAGEMENT
MEMORY
RAM
2
1
SUBSYSTEM
SYSTEM
DISK
UTILITY
PROGRAMS
BUFFER AREA
RESERVED
FOR DOS II
MAP
HIMEM**
LOMEM*
0
* Varies **Dependsonwhich
with
the
numberofDrive
Graphics
05FF 0000 OPERATING SYSTEM
and Sector Buffers reserved.
Modeiscurrently
in use.
RAM
Appendix
D 81
Page 96
Note
1: For
PEEK
Locations
Note
2: To
the
BASIC FRE(O)
(HIGH)
Decimal.
given
Drive
2E7
determine
instructionorPEEK
Buffer
(LOW)
the
allocation
and 2E8
(HIGH)
amountofUser Program
and
Hexor743
Locations
Sector
Area
2ES
Buffer
(LOW)
allocation,
and 744
availableorHIMEM,
(LOW)
and 2E6
LOMEM
(HIGH)
(HIGH)
can be
Decimal.
you
can
either
Hexor741
determined
make
(LOW)
and 742
use
by
of
82
Appendix
D
Page 97
APPENDIX E
HEXADECIMAL TO
DECIMAL CONVERSION
FOUR HEX
4 3 2 1
HEX
0 00
1
2 3 4 16384 4 5 6 7 8 9 36864 9 2304 9
A 40960 A
B 45056 B 2816 B
C D 53248 D 3328 D 206
E F
DEC HEX
4096 1 8192 2
12288 3
20480 24576 28672 7
32768
49152
57344 E 61440 F
DEC
256
512 2 32
768
1024 5 6
8 2048 8 128
C 3072 C 192
1280
1536
1792
2560
3584 3840
0
DICITS
HEX
0 1
3
4
5 80
6
7
A
E 224 F
DEC HEX DEC
00 0
16
48 64 4 4
96
112 7 7
144 160 176
240 F 15
TABLE
1 2
3
55
6
88 99
A
B 11
C D 13
E
1 2
3
6
10
12
14
*Use
this
tabletoconvertupto
example,toconvert
For of
the
four
columnsinthe
1234
hex. =
Other
examples:
EEDD hex. =
AB hex. =
the
hex
number
table.
4096
+ 512 + +
4660 dec.
57344
+ 3584 + 208 + 13
61149 dec.
+ 11
171 dec.
four
For 1, use
48
4
160
hex digits.
1234todecimal,
the
column
add
the
number
entries
from
4, and so on.
Appendix
each
E 83
Page 98
Page 99
APPENDIX F
You r
new
DOSIIVersion technique than shippedtoyou. diskette data with decimal)
reliable.
POKE
for with
POKE
To
alter always FI LES)
from
that
rapid
data
withoutaRead
that
determines
Read
Verify
Write
To
1913,80
fast
Write
Read
Verify,
1913,87
the
boot
from
RAM
onto
customize
versionofDOS
in,
the
2.0S has
shouldbeused
transmissions).
To
save
time,
Verify.
whether
(50 hex, 80
without
(Write
simply
Disk
your
Read
your
without
type
Operating
diskette.
HOW
DATA
TO
TRANSFERS
TO DISK DRIVE
the
abiIitytoWrite
whenever
Thisisthe
however,
Memory
the
decimal)orWrite
Verify
version
Read
storedondiskettesothat
DOS
and
System
improved
the
Location
File
Management
isofcourse
of
Verify)
then
Menutostore
reliabilityismore
way
your
information
1913
without
DOSIIfrom
If
you
would
use an
"H"
SPEED
with
Read
DOSIIMaster
canbewritten
(decimal)
Subsystem
Read
Verify
faster,
but
BASIC,
rather
your
custom
command
the
new
may
UP
Verify(asafety
important
Diskette
to
the
contains
will
(57 hex, 87
not
you
have
version
(WRITE
versionofDOS
use
need
the
the
Write
be as
to:
Write
will
DOS
is
Append
ix F 85
Page 100
Loading...