home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 9 / 09.iso / l / l200 / 6.ddi / TOOL / HOST.H < prev    next >
Encoding:
C/C++ Source or Header  |  1986-09-10  |  1.2 KB  |  45 lines

  1. /*    host.h -- host dependent information for IBM PC    and    Lattice    C
  2.  
  3.     Copyright (c) 1983,    1984 by     JMI Software Consultants, Inc.
  4.  */
  5.  
  6. typedef    struct
  7.    {
  8.    BYTES s_es, s_cs, s_ss, s_ds;
  9.    } SEGREG;
  10.  
  11. typedef    struct
  12.    {
  13.    BYTES ax, bx, cx, dx, si, di, cflag;
  14.    } REGVAL;
  15.  
  16. #define    CF 0x001       /* carry                   */
  17. #define    PF 0x004       /* parity               */
  18. #define    AF 0x010       /* auxiliary    carryy       */
  19. #define    ZF 0x040
  20. #define    SF 0x080       /* sign                   */
  21. #define    TF 0x100       /* trap                   */
  22. #define    IF 0x200       /* interrupt-enable       */
  23. #define    DF 0x400       /* direction               */
  24. #define    OF 0x800       /* overflow               */
  25.  
  26. #define    ISDEV 0x0080    /* is this a device        */
  27. #define    ISCIN 0x0001    /* console input */
  28. #define    ISCOT 0x0002    /* console output */
  29.  
  30. #define    RR_NORMAL 0x3fb3        /* not used    */
  31. #define    RR_INKEY  0x0181        /* not used    */
  32. #define    RR_SINPUT 0x3ff3     /*    not    used */
  33. #define    RR_INPUT  0x2181     /*    not    used */
  34.  
  35. typedef    struct
  36.     {
  37.     TEXT *old_name;        /* BASIC's idea    of a device    name */
  38.     TEXT *new_name;        /* What    C calls    the    same device     */
  39.     } NAMES;
  40.  
  41.  
  42. #define    D_CREATE 0x8002    /* mode    used in    creat calls    */
  43. #define    D_OPEN     0x8002    /* mode    used in    open calls */
  44. #define S_IWRITE 0x8180  /* allow user to write to file */
  45.