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

bdosptr.c « go32 « sys « libc « newlib - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 214d40baf58786ad3948fc0bb79ae32c7049d80a (plain)
1
2
3
4
5
6
7
8
9
10
11
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;
}