Download Print this page

Motorola EXORdisk II User Manual page 315

Advertisement

INPUT/OUTPUT FUNCTIONS
25.3 -- Device Independent I/O Functions
described
in
section
25.3.1 i-r the
device
t~pe
is DK.
They reflect
the
cu~~ent
diskette
rile
pointers.
IOeNAM~
IOCSUF,
IOCSBPJ
and
lOeSBI
are
unchanged
if
the device is not
DK.
The remainder or the IOCB is unchanged.
The data burTer contains the record.
The sector buffer contains data from
the
logical sectors read.
This number is
given
by
IOCLSN
minus
the
valid
buffe~
size
in
sectors
«IOCSBI-IOCSaS+1)/128)
if the device
is DK.
25. 3. 5 Output a record -- . PUTRC
The
.PUTRC
function writes a record from a data buffer
to
an
opened
file
or
device.
The
specific
processing
pe~formed
by .PUTRC depends on the FMT bits
oT
IOCFDF and on
the device type.
The
reco~d
output
function
will
process
three
f
i
1 e
formats:
binary rec ord
<
FMT
=
3).
ASC I I rec ord
(FMT
=
5), and
ASClI-converted-binar~
record (FMT
=
7).
Binar~
records will be automatically supplied with their
record
header
(see
section
24.3),
a
byte
countl
and a
checksum.
In
addition~
a
terminating
carriage
return
is
supplied
by
the .PUTRC Tunction.
If the output device is a
non-diskette
device~
the
terminating
carriage
return
will
actually
be
a
carriage
return,
line
reed~
null sequence.
None oT these automatically supplied fields
are
present
in
the data
buf~er
described
by
the
IOCB.
ASCII
records will be automatically space compressed iP
the output device is diskette and iT the "N" bit
or
IOCFDF is
zero.
OtherUlise~
spaces
LUill
not be compressed.
A carriage
return character will be automatically written to the
output
device arter the last data character has been sent unless the
last data character happens to be
a
car~iage
return.
All
carriage returns,
those encountered within the data burfer as
well as
the
automatically
supplied
terminating
one,
are
converted
into
a
carriage return,
line reed,
null
se~uence
when being written to
a
non-diskette device.
The
line
reed
and
null characters generated from embedded
car~iage
returns
will not be written to the diskette.
ASClI-converted-binary records are handled similarly
to
binary records;
however,
the conversion
OT
one eight-bit data
byte
into
two
seven-bit
data
bytes
is
automatically
performed.
Page
25-42

Advertisement

loading

This manual is also suitable for:

Exordisk iii