Category : C Source Code
Archive   : EMXDEV8C.ZIP
Filename : DOS.H

 
Output of file : DOS.H contained in archive : EMXDEV8C.ZIP
/* dos.h (emx/gcc) */

#if !defined (_DOS_H)
#define _DOS_H

#if !defined (_REGS_DEFINED)
#define _REGS_DEFINED

struct _dwordregs
{
unsigned int eax;
unsigned int ebx;
unsigned int ecx;
unsigned int edx;
unsigned int esi;
unsigned int edi;
unsigned int eflags;
};

struct _wordregs
{
unsigned short ax, h_ax;
unsigned short bx, h_bx;
unsigned short cx, h_cx;
unsigned short dx, h_dx;
unsigned short si, h_si;
unsigned short di, h_di;
unsigned short flags, h_flags;
};

struct _byteregs
{
unsigned char al, ah, h_al, h_ah;
unsigned char bl, bh, h_bl, h_bh;
unsigned char cl, ch, h_cl, h_ch;
unsigned char dl, dh, h_dl, h_dh;
};

union REGS {
struct _dwordregs e;
struct _wordregs x;
struct _byteregs h;
};

struct SREGS
{
unsigned int cs;
unsigned int ds;
unsigned int es;
unsigned int fs;
unsigned int gs;
unsigned int ss;
};

#endif

int _int86 (int int_num, union REGS *inp_regs, union REGS *out_regs);
void _segread (struct SREGS *seg_regs);

#endif /* !defined (_DOS_H) */


  3 Responses to “Category : C Source Code
Archive   : EMXDEV8C.ZIP
Filename : DOS.H

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/