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

bdos.c « go32 « sys « libc « newlib - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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;
}