aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/sys/go32/bdos.c
blob: 523f73aa6e0e736bc910a44c5e620b2d4f12986f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <errno.h>
#include "dos.h"

bdos(int func, unsigned 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;
}