OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib-1.10.0/] [newlib/] [libc/] [sys/] [go32/] [sys/] [dos.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1010 ivang
#ifndef _DOS_H_
2
#define _DOS_H_
3
 
4
union REGS {
5
  struct {
6
    unsigned long ax;
7
    unsigned long bx;
8
    unsigned long cx;
9
    unsigned long dx;
10
    unsigned long si;
11
    unsigned long di;
12
    unsigned long cflag;
13
    unsigned long flags;
14
  } x;
15
  struct {
16
    unsigned char al;
17
    unsigned char ah;
18
    unsigned short upper_ax;
19
    unsigned char bl;
20
    unsigned char bh;
21
    unsigned short upper_bx;
22
    unsigned char cl;
23
    unsigned char ch;
24
    unsigned short upper_cx;
25
    unsigned char dl;
26
    unsigned char dh;
27
    unsigned short upper_dx;
28
  } h;
29
};
30
 
31
struct SREGS {
32
  unsigned short cs;
33
  unsigned short ds;
34
  unsigned short es;
35
  unsigned short fs;
36
  unsigned short gs;
37
  unsigned short ss;
38
};
39
 
40
#ifdef __cplusplus
41
extern "C" {
42
#endif
43
 
44
int bdos(int func, unsigned dx, unsigned al);
45
int bdosptr(int func, void *dx, unsigned al);
46
int int86(int ivec, union REGS *in, union REGS *out);
47
int int86x(int ivec, union REGS *in, union REGS *out, struct SREGS *seg);
48
int intdos(union REGS *in, union REGS *out);
49
int intdosx(union REGS *in, union REGS *out, struct SREGS *seg);
50
 
51
#ifdef __cplusplus
52
}
53
#endif
54
 
55
#endif
56
 
57
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.