#include "config.h"

#ifdef CONFIG_INT10   /* a BIG ifdef block */

#include <stdio.h>
#include "dosrun.h"

int int10_emu ( void )
{
  switch (AH) {
    /* set cursor shape */
    case 0x01 : return 1;
    /* read cursor position */
    case 0x03 : DH=0;  /* fake ;-( I don't know method to get actual curpos */
                DL=0;
		CH=10;
		CL=11;
		return 1;
    /* print character */
    case 0x0E : putchar(AL);
		fflush(stdout);
		return 1;
    /* read video mode */
    case 0x0F : AL=3;  /* we put 80*25 color mode as respond */
		AH=80;
		BH=0;
		return 1;
  }
#ifdef CONFIG_DEBUG_UNIMPLEMENTED_FUNC
  fprintf(stderr,"INT10: unimplemented function (AX=%04Xh).\n",AX);
#endif
  return 1;
}

#endif
