diff options
Diffstat (limited to 'libc/include/dos.h')
-rw-r--r-- | libc/include/dos.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/libc/include/dos.h b/libc/include/dos.h new file mode 100644 index 0000000..28575b4 --- /dev/null +++ b/libc/include/dos.h @@ -0,0 +1,34 @@ + +#ifndef __DOS_H +#define __DOS_H +#include <features.h> + +union REGS +{ + struct { unsigned int ax, bx, cx, dx, si, di, cflag; } x; + struct { unsigned char al, ah, bl, bh, cl, ch, dl, dh; } h; +}; + +struct SREGS +{ + unsigned int es, cs, ss, ds; +}; + +extern unsigned int __envseg; +extern unsigned int __psp; +char * __fconv __P((char * fname)); + +unsigned int __segalloc __P((unsigned int paracount)); +void __setvect __P((int i, long j)); +long __getvect __P((int vecno)); + +unsigned int __get_ds __P((void)); +unsigned int __get_es __P((void)); +void __set_es __P((unsigned int seg)); +int __peek_es __P((unsigned int off)); +int __deek_es __P((unsigned int off)); + +#define movedata __movedata + +#endif + |