Tandy 600 Programmer's Reference Manual page 54

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

Advertisement

FUNCTION
57h
-
Get/Set
File
Date/Time
AX:
XXXXXXXX
XXXXXXXX
Entry:
BX
CX
DX
XXXXXXXX
XXXXXXXX
XXXXXXXX
XXXXXXXX
XXXXXXXX
XXXXXXXX
XXXXXXXX
XXXXXXXX
AH
=
57h
(function
code)
AL
=
Operation
to
perform
BX =
File
handle
CX =
Time
to
set
(AL
=
1
)
DX
=
Date
to
set
(AL
=
1
)
SP:
BP:
SI:
Dl:
IP:
FLG
CS
DS
SS
ES
Exit
AX
=
Status
code
CX
=
Current
file
time
(AL
=
0)
DX =
Current
file
date (AL
=
0)
Function
57h
returns
or
sets the
last-write
date
and
time
in
the
directory entry
for
a
file.
On
entry,
AL
specifies the
operation
to
be
performed.
If
AL =
0,
the current date/time
of
the
file
will
be
returned
in
CX/DX.
If
AL =
1,
the date/time
in
CX/DX
will
be assigned
to
the
file.
The
time
in
CX
and
the
date
in
DX
are stored
as
fields
of
bits
with
the
following format:
CX
-
HHHHHMMMMMMSSSSS
H
-
number
of
hours
(0-23)
M
-
number
of
minutes
(0-59)
S
-
number
of
2 second
increments
(0-29)
DX
-
YYYYYYYMMMMDDDDD
Y
-
number
of
years
since
1980
(0-119)
M
-
number
of
the
month
(1-12)
D
-
number
of
the
day
(1-31)
On
return,
if
the carry
flag
is
reset
the operation
succeeded.
If
the carry
flag
is
set,
an
error
occurred
and
the status
code
is in
AX.
Error
Returns:
49

Advertisement

Table of Contents
loading

Table of Contents