Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/sys/go32/bdosptr.c')
-rw-r--r--newlib/libc/sys/go32/bdosptr.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/newlib/libc/sys/go32/bdosptr.c b/newlib/libc/sys/go32/bdosptr.c
new file mode 100644
index 000000000..214d40baf
--- /dev/null
+++ b/newlib/libc/sys/go32/bdosptr.c
@@ -0,0 +1,12 @@
+#include <errno.h>
+#include "dos.h"
+
+bdosptr(int func, void *dx, unsigned al)
+{
+ union REGS r;
+ r.x.dx = dx;
+ r.h.ah = func;
+ r.h.al = al;
+ int86(0x21, &r, &r);
+ return r.x.ax;
+}