#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;
}