diff options
author | Robert de Bath <rdebath@poboxes.com> | 1999-01-23 13:29:22 +0100 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2013-10-23 23:40:39 +0200 |
commit | e62b35169cdcd13632ae353b1e5ffde7dec44201 (patch) | |
tree | 2646548ca84edb365354a6e68459f92943532cee /libc/include/bios.h | |
parent | 2233d47f9d89c107b6c425626d6eb2669363b055 (diff) | |
download | dev86-e62b35169cdcd13632ae353b1e5ffde7dec44201.tar.gz |
Import Dev86src-0.14.7.tar.gzv0.14.7
Diffstat (limited to 'libc/include/bios.h')
-rw-r--r-- | libc/include/bios.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/libc/include/bios.h b/libc/include/bios.h new file mode 100644 index 0000000..4cfcd6a --- /dev/null +++ b/libc/include/bios.h @@ -0,0 +1,39 @@ + +#ifndef __BIOS_H +#define __BIOS_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; +}; + +unsigned int __get_cs __P((void)); +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 + +#ifdef __LIBC__ + +extern int __nofiles(); +extern int (*__files)(); + +#define CMD_OPEN 0 +#define CMD_READ 1 +#define CMD_WRITE 2 +#define CMD_LSEEK 3 +#define CMD_CLOSE 4 + +#endif +#endif + |