1998-10-24 12:38:42 +02:00
|
|
|
/*
|
|
|
|
* BIOS interrupt 17h handler
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
#include "miscemu.h"
|
1999-06-26 21:09:08 +02:00
|
|
|
#include "debugtools.h"
|
1998-10-24 12:38:42 +02:00
|
|
|
#include "msdos.h"
|
|
|
|
#include "winnt.h"
|
|
|
|
|
2001-12-04 20:54:44 +01:00
|
|
|
DEFAULT_DEBUG_CHANNEL(int);
|
1999-04-19 16:56:29 +02:00
|
|
|
|
1998-10-24 12:38:42 +02:00
|
|
|
/**********************************************************************
|
2001-12-04 20:54:44 +01:00
|
|
|
* DOSVM_Int17Handler
|
1998-10-24 12:38:42 +02:00
|
|
|
*
|
|
|
|
* Handler for int 17h (printer - output character).
|
|
|
|
*/
|
2001-12-04 20:54:44 +01:00
|
|
|
void WINAPI DOSVM_Int17Handler( CONTEXT86 *context )
|
1998-10-24 12:38:42 +02:00
|
|
|
{
|
|
|
|
switch( AH_reg(context) )
|
|
|
|
{
|
|
|
|
case 0x01: /* PRINTER - INITIALIZE */
|
1999-06-26 21:09:08 +02:00
|
|
|
FIXME("Initialize Printer - Not Supported\n");
|
1998-10-24 12:38:42 +02:00
|
|
|
AH_reg(context) = 0; /* time out */
|
|
|
|
break;
|
|
|
|
case 0x02: /* PRINTER - GET STATUS */
|
1999-06-26 21:09:08 +02:00
|
|
|
FIXME("Get Printer Status - Not Supported\n");
|
1998-10-24 12:38:42 +02:00
|
|
|
break;
|
|
|
|
default:
|
|
|
|
AH_reg(context) = 0; /* time out */
|
|
|
|
INT_BARF( context, 0x17 );
|
|
|
|
}
|
|
|
|
}
|