home *** CD-ROM | disk | FTP | other *** search
/ Oakland CPM Archive / oakcpm.iso / cpm / apple / cpmdir.inf < prev    next >
Encoding:
Text File  |  1986-12-21  |  1.2 KB  |  33 lines

  1. The following contains information about how the file directory in CP/M is
  2. organized.  There are some references to Apple dos and Apple CP/M, but the
  3. information in general applies to all CP/M systems.
  4.  
  5. The Apple CP/M directory tracks are located on track 3, sectors 0 to 5.
  6. Although sectors 6 to 7 are consider to be part of the directory, they are
  7. unused.
  8.  
  9. There are 4 sectors per CP/M block.  In terms of blocks, the directory is
  10. allocated in blocks 0 and 1.  There is no header in the start of each sector,
  11. like Apple dos.
  12.  
  13. Each file entry has 32 bytes/file and 8 files/sector.
  14. Here is the description of entry:
  15.  
  16.   offset     description
  17.  
  18.    +00       user number ($e5 if files is deleted).
  19.      1 to 8  filename.
  20.      9 to 12 filename extension. (note no '.' is stored).
  21.     13       extent number, 16 blocks/extent which equals 1 directory entry.
  22.     14 to 15 unsed.
  23.     16       number of 128 byte records. (max. $80).
  24.     17 to 31 block allocation.
  25.  
  26. The block allocation is like Apple dos track/sector list.
  27.  
  28. The initial extent number for each file is 0.  If the file is longer than 16
  29. blocks, a new directory entry is made.  The new entry's extent number is
  30. incremented by 1.
  31.  
  32.  
  33.