Tandy 600 Programmer's Reference Manual page 62

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

Advertisement

FUNCTION
D5h
-
Get
File
Mark
AX
BX
CX
DX
SP:
BP:
SI:
Dl:
IP:
FLG
CS
DS
SS
ES
XXXXXXXX
XXXXXXXX
XXXXXXXX
1
Entry:
AH
=
D5h
(function
code)
BX =
File
handle
Exit
AX
=
File
mark
Function
D5h
returns
a
file
status
mark
that
can be used
to
test
if
a
file
has been
modified.
The
file
mark
is
a 16
bit
unsigned
integer that
is
changed each
time
that
a
file
is
modified.
To use
the
file
mark
the
following
procedure can be
used:
Read
the
mark
immediately before
closing the
file
and save
the
value.
The
next time the
file is
accessed, read
the
mark
immediately
after
the
file is
opened and compare
with
the previous
value.
If
the
values are
different,
the
file
has been
modified since the
last
time
you
closed
it.
This
function
is
only allowed
on
internal
files. In
order
to
maintain compatability with
MS-DOS,
disk
files
do
not
have an access
control
mark.
57

Advertisement

Table of Contents
loading

Table of Contents