Chapter
1
I
System Calls
FileSize
File
Size
Function
Call 23H
Searches the disk directory for the first matching entry
for
a
specified FCB. If
a
matching directory entry is found, the rela-
tive record field (offset 21H) is set
to
the number
of
records in
the file, calculated from the total file size in the directory entry
(offset 1CH) and the record size field (offset
0EH)
of
the FCB.
If the value
of
the record size field
of
the FCB does not match
the actual number
of
characters in a record, this function does
not return the correct file size. If the default record size (128) is
not correct, you must set the record size field
to
the correct value
before using this function.
Entry Conditions:
AH
=
23H
DS:DX
=
pointer to
the
file's unopened
FCB
Exit Conditions:
If
AL
=
00H,
a
directory entry
was
found.
If
AL
=
FFH, no directory entry was found.
Macro
Definition:
f
1le-51ze
macro
fcb
mov
dx,offsetfcb
mov
ah,23H
Int
21
H
endm
__
73