#include "config.h"

#ifdef CONFIG_INT16

#include <stdio.h>
#include <unistd.h>
#include "dosrun.h"

extern int check_avail_char ( int );

int int16_emu ( void )
{
  switch (AH) {
    /* read from keyboard */
    case 0x00 : read(0,&vm.regs.eax,1);
                return 1;
    /* get keyboard status FAKE!!!!!!!!! */
    case 0x02 : AL=0;
                return 1;
  }
#ifdef CONFIG_DEBUG_UNIMPLEMENTED_FUNC
  fprintf(stderr,"INT16: unimplemented function (AX=%04Xh)\n",AX);
#endif
  return 1;
}

#endif
