diff options
Diffstat (limited to 'newlib/libc/sys/go32/bdos.c')
-rw-r--r-- | newlib/libc/sys/go32/bdos.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/newlib/libc/sys/go32/bdos.c b/newlib/libc/sys/go32/bdos.c new file mode 100644 index 0000000..523f73a --- /dev/null +++ b/newlib/libc/sys/go32/bdos.c @@ -0,0 +1,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; +} |