Input/Output Control Blocks - Atari DOS 2.5: XF551 Owner's Manual

Atari dos 2.5 disk drive
Table of Contents

Advertisement

RUN
Format
: RUN filespec
Example
:
RU~l
"D2:
t'rr'FILE
.
:BAS"
ThiS command causes the computer to LOAD and RUN the des-
ignated filespec. It is a combination of the
two
commands LOAD
and RUN
.
However,
the RUN command can be used only with
tokenized
'iles.
Therefore
,
you cannot execute a RUN
"
02
:
LlST.LST
"
command
.
To
chain programs and cause a second segment of a file to load
and
run
automatically,
you can use a RUN
"
0
:
filespec
"
as the
last line of the first segment.
However,
the second program must
be able to stand
alone
without depending on any variables or
data in
RAM
from the first program
.
Before
running the first seg-
ment,
make sure that you
have
saved it on a
diskette,
because
the
RUN
statement will wipe out your RAM
-resident
first segment
when the second segment is
loaded.
Input/Output Control Blocks
An
1
1
0 (input/output) operation is controlled
by
an
1
1
0 Control
Block
(IOCB).
An 10CB is a specification of the
1
1
0 operation
,
consisting of the type of
110,
the buffer
length,
the
buffer
address
,
and
two more
auxiliary control variables of which the
second is
usually
O.
ATAR
I
BASIC sets up eight IOCBs and
dedicates three as follows
:
IOCB
#0 is used by
BASIC
for
1/0
to
E:
IOCB
#6 is used by BASIC for
110
to S:
IOCB
#7 is used by BASIC for
LPRINT. CLOAD.
and SAVE
commands.
IOCBs #1 through
#5
can
be
used
freely,
but the dedicated
IOCBs
should
be
avoided
unless a program
does
not
make
use
of one of the dedicated uses
above.
IOCB #0 can
never
be
opened
or
closed from a
BASIC program
.
66

Advertisement

Table of Contents
loading

This manual is also suitable for:

Xf551

Table of Contents