home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ctcoll95.zip / BASTELST / PAPI020.ZIP / GEN.H < prev    next >
Text File  |  1993-10-06  |  1KB  |  76 lines

  1.  
  2. typedef    struct
  3.     {
  4.     word    bp;
  5.     word    di;
  6.     word    si;
  7.     word    ds;
  8.     word    es;
  9.     word    dx;
  10.     word    cx;
  11.     word    bx;
  12.     word    ax;
  13.     word    ip;
  14.     word    cs;
  15.     word    fl;
  16.     }    IntrWordRegsType;
  17.  
  18. typedef    struct
  19.     {
  20.     word    filler[5];
  21.     byte    dl;
  22.     byte    dh;
  23.     byte    cl;
  24.     byte    ch;
  25.     byte    bl;
  26.     byte    bh;
  27.     byte    al;
  28.     byte    ah;
  29.     }    IntrByteRegsType;
  30.  
  31. typedef    union
  32.     {
  33.     IntrWordRegsType    w;
  34.     IntrByteRegsType    b;
  35.     }    IntrRegsType;
  36.  
  37. enum
  38.     {
  39.     FL_CARRY        =    0x0001,
  40.     FL_PARITY        =    0x0004,
  41.     FL_AUXILIARY    =    0x0010,
  42.     FL_ZERO            =    0x0040,
  43.     FL_SIGN            =    0x0080,
  44.     FL_OVERFLOW        =    0x0800
  45.     };
  46.  
  47. #define    ErrInt        0x80000000L
  48.  
  49. /*
  50.  *  PSP layout
  51.  */
  52.  
  53. typedef struct
  54.     {
  55.     word        PSP_Int20;
  56.     word        PSP_MemSize;
  57.     byte        PSP_fill1;
  58.     byte        PSP_Call21[5];
  59.     dword        PSP_TerminateVector;
  60.     dword        PSP_BreakVector;
  61.     dword        PSP_ErrorVector;
  62.     byte        PSP_fill2[22];
  63.     word        PSP_Environment;
  64.     byte        PSP_fill3[34];
  65.     byte        PSP_Int21Retf[3];
  66.     word        PSP_fill4;
  67.     byte        PSP_FCB1Extn[7];
  68.     byte        PSP_FCB1[9];
  69.     byte        PSP_FCB2Extn[7];
  70.     byte        PSP_FCB2[9];
  71.     byte        PSP_ParamLen;
  72.     byte        PSP_Params[127];
  73.     byte        PSP_DTA[128];
  74.     }    PSP_Type, *PSP_Ptr;
  75.  
  76.