Tandy 600 Programmer's Reference Manual page 55

Bios programmers
Hide thumbs Also See for 600:
Table of Contents

Advertisement

FUNCTION
DOh
-
Expand
File
AX
BX
CX
DX
XXXXXXXX
XXXXXXXX
XXXXXXXX
XXXXXXXX
XXXXXXXX
XXXXXXXX
SP:
BP:
SI:
Dl:
IP:
FLG
CS
DS
SS
ES
Entry:
AH
AL
BX
CX
Exit:
AX
CX
DOh
(function
code)
Method
File
handle
Size
of
block
to insert
Error
Code
Number
of
bytes
added
or size
of
largest
possible block
that
could
be
added
Function
DOh
will
cause a
file
to
be
enlarged
by
the
specified
number
of
bytes.
On
entry
to
the
function,
the user
specifies
the
file
handle
for
a
previously
opened
file
in
BX,
the
amount
by
which
the
file is
to
be expanded
in
CX, and
the desired
method
in
AL.
The
following
methods
are
defined:
Method
1
2
Description
Expand
the
file
at
the
beginning
Expand
the
file
at
the current
position
Expand
the
file
at
the
end
of
file
On
return
from
the
function
call,
the
carry
flag
will
be
reset
if
the
operation
was
successful,
and
DX
will
contain the
number
of
bytes
added
to
the
file.
If
the carry
flag
is
set,
an
error
occurred,
and an
error
code
is
in
AX.
If
the
call
failed
because
of
insufficient
memory
to
carry
out the operation, then the
file will
not
have been
modified,
and
the size
of
the
largest
block
that
could
be added
to
the
file
will
be
in
CX.
50

Advertisement

Table of Contents
loading

Table of Contents