source: trunk/src/emx/include/dos.h@ 689

Last change on this file since 689 was 18, checked in by bird, 22 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 1.0 KB
Line 
1/* dos.h (emx+gcc) */
2
3#ifndef _DOS_H
4#define _DOS_H
5
6#if defined (__cplusplus)
7extern "C" {
8#endif
9
10#if !defined (_REGS)
11#define _REGS
12
13struct _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
24struct _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
35struct _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
43union REGS
44{
45 struct _dwordregs e;
46 struct _wordregs x;
47 struct _byteregs h;
48};
49
50struct 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
62int _int86 (int, __const__ union REGS *, union REGS *);
63void _segread (struct SREGS *);
64
65#if defined (__cplusplus)
66}
67#endif
68
69#endif /* not _DOS_H */
Note: See TracBrowser for help on using the repository browser.