OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib/] [newlib/] [libc/] [sys/] [go32/] [bdos.c] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 39 lampret
#include <errno.h>
2
#include "dos.h"
3
 
4
bdos(int func, unsigned dx, unsigned al)
5
{
6
  union REGS r;
7
  r.x.dx = dx;
8
  r.h.ah = func;
9
  r.h.al = al;
10
  int86(0x21, &r, &r);
11
  return r.x.ax;
12
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.