* tiny
[mascara-docs.git] / compilers / bcc / linux86-0.16.17 / libc / include / bios.h
blob8c60d34b79565b57bb0792f3eaee7761b57b658b
2 #ifndef __BIOS_H
3 #define __BIOS_H
4 #include <features.h>
6 union REGS
8 struct { unsigned int ax, bx, cx, dx, si, di, cflag, flags; } x;
9 struct { unsigned char al, ah, bl, bh, cl, ch, dl, dh; } h;
12 struct SREGS
14 unsigned int es, cs, ss, ds;
17 unsigned int __get_cs __P((void));
18 unsigned int __get_ds __P((void));
19 unsigned int __get_es __P((void));
20 void __set_es __P((unsigned int seg));
21 int __peek_es __P((unsigned int off));
22 int __deek_es __P((unsigned int off));
24 #define movedata __movedata
25 long _bios_get_dpt(drive);
27 #ifdef __LIBC__
29 extern int __nofiles();
30 extern int (*__files)();
32 #define CMD_OPEN 0
33 #define CMD_READ 1
34 #define CMD_WRITE 2
35 #define CMD_LSEEK 3
36 #define CMD_CLOSE 4
38 #endif
39 #endif