#include "config.h"

#ifdef CONFIG_INT15   /* BIG ifdef section */

#include <stdio.h>
#include <unistd.h>
#include "dosrun.h"


int int15_emu ( void )
{
  switch (AH) {
    /* delay */
    case 0x86 : usleep(DOS_LONG(CX,DX));
                return 1;
    /* switch into protected mode */
    case 0x89 : fprintf(stderr,"Switching into protected mode (int 15h, AH=89h), exiting ...\n");
                return 0;
  }
#ifdef CONFIG_DEBUG_UNIMPLEMENTED_FUNC
  fprintf(stderr,"INT15: unimplemented function, AX=%04X, BX=%04X\n",AX,BX);
#endif
  return 1;
}



#endif
