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

  1. /*  FILE  ==>  pec.h                                               */
  2. /*  Contains special purpose function numbers for use with the     */
  3. /*  "BDOS(c, de)" function of BDS C.                               */
  4. /*-----------------------------------------------------------------*/
  5.  
  6. #define READ    1    /* Read console byte */
  7. #define    WRITE    2    /* Write console byte */
  8. #define    LIST    5    /* Write list device (LPT) byte */
  9. #define    DCIO    6    /* Direct console in - out */
  10. #define IOBYTE    7    /* Get IOBYTE setting */
  11. #define    SET_IOBYTE    8    /* Set IOBYTE */
  12. #define PRT_STRING    9    /* Display "$" terminated string */
  13. #define READ_STRING    10    /* Read a string from the console */
  14. #define CON_STATUS    11    /* Read console status */
  15. #define    CPM_NUM    12    /* Get CP/M Version No. */
  16. #define    RESET    13    /* Reset the disk system */
  17. #define    LOGICAL    14    /* Select logical disk */
  18. #define    OPEN_FILE    15    /* Open file for read/write */
  19. #define    CLOSE_FILE    16    /* Close the file */
  20. #define    SEARCH_FIRST    17    /* Search for first name match */
  21. #define SEARCH_NEXT    18    /* Search for next name match */
  22. #define ERASE    19    /* Erase the named file */
  23. #define READ_SECT    20    /* Read a sequential sector */
  24. #define    WRITE_SECT    21    /* Write a sequential sector */
  25. #define    CREATE    22    /* Create (make) the named file */
  26. #define RENAME    23    /* Rename a file */
  27. #define DEFAULT    25    /* Get current default disk */
  28. #define    SETDMA    26    /* Set the DMA address */
  29. #define    READ_ONLY    28    /* Sets logical disk to R/O status */
  30. #define    SET_ATTRIBUTES    30    /* Set file attributes */
  31. #define USER_ID    32    /* Set/get User No. */
  32. /*-----------------------------------------------------------------*/
  33.  
  34.