mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-15 19:09:58 +08:00
13 lines
185 B
C
13 lines
185 B
C
#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;
|
|
}
|