Tandy 600 Programmer's Reference Manual page 34

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

Advertisement

FUNCTION 3Dh
-
Open
File
AX
BX
CX
DX
XXXXXXXX
XXXXXXXX
XXXXXXXX
XXXXXXXX
Entry:
AH =
3Dh
(function
code)
AL
=
access
type
DS:DX
=
File
name
SP:
BP:
SI:
Dl:
IP:
FLG
CS
DS
SS
ES
Exit;
AX
=
status
code
or
file
handle
XXXXXXXXXXXXXXXXXXX
Function
3Dh
will
open
a
file
for
access.
On
entry
to
the
function,
DX
specifies
the
offset,
from
the
segment
in
DS,
of
an
ASCIIZ
string
specifying the
name
of
the
file
to
open.
AL
specifies
the
type
of
access
requested.
The
following
access
types are
defined:
Access
1
2
Description
Read
only
Write only
Read/Write
On
return
from
the
function,
the carry
flag
is
reset
if
the operation
succeeded.
In
this
case,
AX
contains
a
file
handle
opened
for
the
requested
access and
the pointer
to
the current position
is
set to
the
beginning
of
the
file.
If
the carry
flag
is
set,
an
error
occurred
and
the status
code
is in
AX.
Error
Returns:
29

Advertisement

Table of Contents
loading

Table of Contents