#ifndef __DOSEMU_H__
#define __DOSEMU_H__

#define DOS_HELPER 0xe6
#define DAEMON_HELPER 0x0666
#define IOPERM_HELPER 3

#ifndef __GNUC__
extern int _AX_, _BX_, _CX_, _DX_, _SI_, _DI_;
int call_dosemu (ax)
int ax {
  _AX_ = ax;
  int86 (DOS_HELPER);
  return _AX_;
}

#else /* !__GNUC__ */
#ifdef __GO32__

#include <dos.h>
int call_dosemu (int func, union REGS * regs) {
  regs->x.ax = func;
  int86 (DOS_HELPER, regs, regs);
  return regs->x.ax;
}
#endif /* __GO32__ */
#endif /* !__GNUC__ */
  

#endif /* !__DOSEMU_H__ */
