home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1993 #2 / Image.iso / clipper / int86x.zip / CINT86X.H < prev    next >
Text File  |  1993-07-10  |  2KB  |  88 lines

  1. /*
  2.  * File......: CINT86.H
  3.  * Author....: Ted Means
  4.  * Date......: $Date:   15 Aug 1991 23:09:00  $
  5.  * Revision..: $Revision:   1.1  $
  6.  * Log file..: $Logfile:   E:/nanfor/src/cint86.h_v  $
  7.  * 
  8.  * This is an original work by Ted Means and is placed in the
  9.  * public domain.
  10.  *
  11.  * Modification history:
  12.  * ---------------------
  13.  *
  14.  * $Log:   E:/nanfor/src/cint86.h_v  $
  15.  * 
  16.  *    Rev 1.1   15 Aug 1991 23:09:00   GLENN
  17.  * Forest Belt proofread/edited/cleaned up doc
  18.  * 
  19.  *    Rev 1.0   27 May 1991 13:22:46   GLENN
  20.  * Initial revision.
  21.  *
  22.  */
  23.  
  24.  
  25.  
  26. //  This is the header file for CINT86X.C
  27.  
  28. typedef unsigned int UINT;
  29. typedef unsigned char BYTE;
  30.  
  31. typedef union
  32. {
  33.    void far * Address;
  34.    struct
  35.    {
  36.       UINT Offset;
  37.       UINT Segment;
  38.    } Pointer;
  39. } FARPTR;
  40.  
  41. typedef struct
  42. {
  43.     UINT BX;
  44.     UINT CX;
  45.     UINT DX;
  46.     UINT AX;
  47. } WORDREGS;
  48.  
  49. typedef struct
  50. {
  51.     BYTE BL, BH;
  52.     BYTE CL, CH;
  53.     BYTE DL, DH;
  54.     BYTE AL, AH;
  55. } BYTEREGS;
  56.  
  57. typedef union
  58. {
  59.     WORDREGS w;
  60.     BYTEREGS b;
  61. } REGS;
  62.  
  63. typedef union
  64. {
  65.    UINT registers[ 10 ];
  66.    struct
  67.    {
  68.       UINT DS;
  69.       UINT ES;
  70.       UINT DI;
  71.       UINT SI;
  72.       UINT BP;
  73.       UINT SP;
  74.       REGS regs;
  75.    } CPURegs;
  76. } REGISTERS;
  77.  
  78. void _bcopy( void far * pDest, void far * pSrc, UINT nBytes );
  79.  
  80. UINT ExoRMInterrupt( UINT nInt, REGISTERS far * inregs, REGISTERS far * outregs );
  81.  
  82. FARPTR _xalloclow( UINT nSize );
  83.  
  84. void _xfreelow( FARPTR * pPma );
  85.  
  86. FARPTR ExoRealPtr( FARPTR pPma );
  87.  
  88.