Tandy 1000 Programmer's Reference Manual page 124

Hide thumbs Also See for 1000:
Table of Contents

Advertisement

Chapter 1 I System Calls
CurrentDir
Return Text of
Current Directory
Function Call 47H
Returns the current directory for a particular drive. The direc-
tory is root-relative and does not contain the drive specifier or
leading path separator.
Entry Conditions:
AH
=
47H
DS:SI
=
pointer
to
64-byte memory area to receive directory
DL
=
drive (0
=
default,
1
=
A, 2
=
B , etc.)
Exit Conditions:
Carry set:
Carry not set:
Error Returns:
AX
=
15
AX
=
error code
DS:DI
=
pointer to 64-byte area containing directory
Invalid drive. The drive specified in DL was invalid.
Example:
C u r r e n t D i r
equ
47H
Ids
5 1 ,
a r e a
mov
d l ,
d r i v e
mow
a h , C u r r e n t D i r
i n t
21 H
122

Advertisement

Table of Contents
loading

Table of Contents