Tandy 600 Programmer's Reference Manual page 33

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

Advertisement

FUNC1
AX
BX
CX
DX
XXXXXXXX
xxxxxxxx
xxxxxxxx
xxxxxxxx
XXXXXXXX
xxxxxxxx
SP:
BP:
SI:
Dl:
IP:
FLG
CS
DS
SS
ES
Entry:
AH =
3Ch
(function
code)
CX
=
File
attributes
DS:DX
=
Pointer
to
file
name
Exit
AX
=
status
code
or
file
handle
Function
3Ch
creates a
new
file,
or truncates
an
existing
file
to
zero
length
in
preparation
for
writing.
If
the
file
did not
exist,
then
a
new
file
will
be
created
and
given the
specified
attributes.
If
the
file
already
existed,
it
will
be
truncated
to
zero
length.
On
return
from
the
function,
the
carry
flag
will
be
reset
if
the operation
succeeded.
In
this
case,
AX
will
contain
a
file
handle which
is
open
for
read/write
access on
the
file,
with
the
pointer to
the current
position
in
the
file
set
to
point
to
the
beginning
of
the
file.
If
the
carry
flag
is
set,
an
error
occurred,
and
the status
code
is
in
AX.
Error returns:
28

Advertisement

Table of Contents
loading

Table of Contents