Tandy 600 Programmer's Reference Manual page 49

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

Advertisement

FUNCTION
4Eh
-
Find
First
Matching
File
AX
BX
CX
DX
SP:
BP:
SI:
Dl:
IP:
FLG
CS
DS
SS
ES
XXXXXXXX
XXXXXXXX
XXXXXXXX
XXXXXXXX
XXXXXXXX
XXXXXXXX
Entry;
AH
=
4Eh
(function
code)
CX
=
Search
attributes
DS:DX
=
File
reference
Exit:
AX
=
Status
code
CX:DX
=
Information
buffer
XXXXXXXXXXXXXXXXXXX
Function
4Eh
takes a
file
reference containing
wild-card characters
and
returns
a
data
block
containing information
about
the
first
directory entry
which
matches
the
file
reference.
On
entry,
DX
contains
the
offset
(from the
segment
in
DS)
of
an
ASCIIZ
string
specifying the
file
reference.
CX
contains
file
attributes
which
restrict
the search.
On
return,
if
the carry
flag
is
reset
the operation
succeeded.
CX
contains the
segment
address and
DX
the
offset of
a
buffer
containing information
about
the
matched
file.
The
information
in
the
buffer
is
in
the
following format:
Location
Description
File
attributes
1-2
File
time
3-4
File
date
5-8
File
size
9-21
File
name
(ASCIIZ
string)
1.
File
Attributes
-
This byte contains the
attribute
defined:
01h
-
File
is
read only
02h
-
File
is
hidden
04h
-
File
is
a
system
file
20h
-
Archive
bit
44

Advertisement

Table of Contents
loading

Table of Contents