home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 September / Chip_2000-09_cd1.bin / sharewar / Slunec / app / 16 / ARCHIVES.SWG / 0007_LBR.pas < prev    next >
Pascal/Delphi Source File  |  1996-09-03  |  2KB  |  46 lines

  1. --------A-LBR-------------------------------
  2.  
  3. The  LBR  files  consist of a direcotry  and  one or more "members". The
  4. directory  contains  from 4 to 256  entries and each entry describes one
  5. member.  The  first directory entry  describes the directory itself. All
  6. space  allocations are in terms of sectors,  where a sector is 128 bytes
  7. long.  Four  directory  entries  fit in  one  sector  thus the number of
  8. directory  entries  is always evenly divisible  by 4. Different types of
  9. LBR  files  exist, all versions are  discussed here, the directory entry
  10. looks like this :
  11.  
  12. OFFSET              Count TYPE   Description
  13. 0000h                   1 byte   File status :
  14.                                   0 - active
  15.                                 254 - deleted
  16.                                 255 - free
  17. 0001h                  11 char   File name in FCB format (8/3, blank padded),
  18.                                  directory name is blanks for old LU,
  19.                                  ID='********DIR'
  20.                                  for LUPC
  21. 000Ch                   1 word   Offset to file data in sectors
  22. 000Eh                   1 word   Length of stored data in sectors
  23.  
  24. For the LUPC program, the remaining 16 bytes are used like this :
  25.  
  26. OFFSET              Count TYPE   Description
  27. 0000h                   8 char   ASCII date of creation (MM/DD/YY)
  28. 0008h                   8 char   ASCII time of creation (HH:MM:SS)
  29.  
  30. For the LU86 program, the remaining 16 bytes are used like this :
  31.  
  32. OFFSET              Count TYPE   Description
  33. 0000h                   1 word   CRC-16 or 0
  34. 0002h                   1 word   Creation date in CP/M format
  35. 0004h                   1 word   Creation time in DOS format
  36. 0006h                   1 word   Date of last modification, CP/M format
  37. 0008h                   1 word   Time of last modification, DOS format
  38. 000Ah                   1 byte   Number of bytes in last sector
  39. 000Bh                   5 byte   reserved (0)
  40.  
  41. EXTENSION:LBR
  42. OCCURENCES:PC,CP/M
  43. PROGRAMS:LU.COM, LUU.COM, LU86.COM
  44. SEE ALSO:
  45.  
  46.