home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_100 / 108_01 / rt11.h < prev    next >
Text File  |  1985-11-14  |  1KB  |  63 lines

  1. /*
  2.     RT-11 Adapter Package for CP/M
  3.  
  4.     Rev. 1.0 -- July, 1980
  5.  
  6.     Rev. 1.1 -- March 1981 consisting of adding a valid system date
  7.             word to all files placed on the RT-11 disk and
  8.             putting the volume ID on a disk when the directory
  9.             is initialized.  This will keep RT-11 versions
  10.             later than V02C from choking.
  11.  
  12.     copyright (c) 1980, William C. Colley, III
  13.  
  14. Global definitions and macro substitutions.
  15. */
  16.  
  17. /*    RT-11 directory entry types:    */
  18.  
  19. #define    TENTAT        1
  20. #define    EMPTY        2
  21. #define    PERM        4
  22. #define    ENDSEG        8
  23.  
  24. /*    BIOS calls:    */
  25.  
  26. #define    SEL_DSK        9
  27. #define    SET_TRK        10
  28. #define    SET_SEC        11
  29. #define    READ        13
  30. #define    WRITE        14
  31.  
  32. /*    BDOS calls:    */
  33.  
  34. #define    INIT_BDOS    13
  35. #define    OPEN_FILE    15
  36. #define    CLOSE_FILE    16
  37. #define    READ_NEXT    20
  38. #define    WRITE_NEXT    21
  39. #define    MAKE_FILE    22
  40. #define    SET_DMA        26
  41.  
  42. /*    CP/M default DMA address:    */
  43.  
  44. #define    DMA_ADDR    0x80
  45.  
  46. /*    RT-11 directory buffer and associated values:    */
  47.  
  48. struct dirseg
  49. {
  50.     unsigned total_segments;
  51.     unsigned next_segment;
  52.     unsigned highest_segment;
  53.     unsigned extra_bytes;
  54.     unsigned first_block;
  55.     char entries[1024 - 10];
  56. } directory;
  57.  
  58. int current_segment, file_start;
  59. char *dir_pointer;
  60.  
  61. unsigned sysdate;        /*  System date word.  */
  62. hen the directory
  63.             is initialized.