Directory Entry Layout

DirEntryRec 
  Offset Size Contents
  ▀▀▀▀▀▀ ▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  +0       8  abName       left-justified, blank-padded (e.g. 'FILE    '
  +8       3  abExt        left-justified, blank-padded (e.g. 'EXT'
 +0bH      1  bAttr        file attribute
 +0cH     10  res          (reserved)
 +16H      2  rTime        time created/last modified in FileTimeRec format
 +18H      2  rDate        date created/last modified in FileDateRec format
 +1aH      2  wClstrNo     cluster number of start of file (link into FAT)
 +1cH      4  lSize        file size in bytes
          32               size of DirEntryRec

      abName  The name of the file or directory.  If fewer than 8
              characters, it is padded to 8 with spaces (20H).  The
              following bytes, when at offset 0, have special meaning:
               00H ( ) The entry has never been used.
               05H () The first character is really 0e5H
               2eH (.) This is an alias for a directory. .=self, ..=parent
               e5H (σ) The entry has been deleted.
       abExt  File extension.  If fewer than 3 characters, it is padded to 3
              with spaces (30H)
       bAttr  See File Attributes
       rTime  File time in special format. See FileTimeRec
       rDate  File date in special format. See FileDateRec
    wClstrNo  Cluster number of the first cluster in the file.  This is the
              link into the FAT chain that defines the location if the file.
       lSize  32-bit file length; a 4 GB capacity!

   Notes: ■ This layout is seen when you read a directory sector from the
            disk, for instance, via INT 25H.  See Boot Sector for a way to
            calculate the sector of the root directory.

          ■ It is also returned by FCB-oriented fns 11H and 12H.

          ■ It is used in DoubleSpace compressed drives.  See CVF Layout.

See Also: File Allocation Table
          Data Structures
                                    -♦-