home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / e / emxdev8f.zip / DOS.H < prev    next >
C/C++ Source or Header  |  1992-11-18  |  1KB  |  70 lines

  1. /* dos.h (emx+gcc) */
  2.  
  3. #if !defined (_DOS_H)
  4. #define _DOS_H
  5.  
  6. #if defined (__cplusplus)
  7. extern "C" {
  8. #endif
  9.  
  10. #if !defined (_REGS)
  11. #define _REGS
  12.  
  13. struct _dwordregs
  14. {
  15.   unsigned int eax;
  16.   unsigned int ebx;
  17.   unsigned int ecx;
  18.   unsigned int edx;
  19.   unsigned int esi;
  20.   unsigned int edi;
  21.   unsigned int eflags;
  22. };
  23.  
  24. struct _wordregs
  25. {
  26.   unsigned short ax, h_ax;
  27.   unsigned short bx, h_bx;
  28.   unsigned short cx, h_cx;
  29.   unsigned short dx, h_dx;
  30.   unsigned short si, h_si;
  31.   unsigned short di, h_di;
  32.   unsigned short flags, h_flags;
  33. };
  34.  
  35. struct _byteregs
  36. {
  37.   unsigned char al, ah, h_al, h_ah;
  38.   unsigned char bl, bh, h_bl, h_bh;
  39.   unsigned char cl, ch, h_cl, h_ch;
  40.   unsigned char dl, dh, h_dl, h_dh;
  41. };
  42.  
  43. union REGS
  44. {
  45.   struct _dwordregs e;
  46.   struct _wordregs  x;
  47.   struct _byteregs  h;
  48. };
  49.  
  50. struct SREGS
  51. {
  52.   unsigned int cs;
  53.   unsigned int ds;
  54.   unsigned int es;
  55.   unsigned int fs;
  56.   unsigned int gs;
  57.   unsigned int ss;
  58. };
  59.  
  60. #endif
  61.  
  62. int _int86 (int int_num, union REGS *inp_regs, union REGS *out_regs);
  63. void _segread (struct SREGS *seg_regs);
  64.  
  65. #if defined (__cplusplus)
  66. }
  67. #endif
  68.  
  69. #endif /* !defined (_DOS_H) */
  70.