blob: 319e77379dbc732da19f2711b8d6c39d8eaee55b [file] [log] [blame]
Carl van Schaik0ada41e1998-10-24 10:38:42 +00001/*
2 * BIOS interrupt 17h handler
3 */
4
5#include <stdlib.h>
6
7#include "miscemu.h"
Alexandre Julliard61fece01999-06-26 19:09:08 +00008#include "debugtools.h"
Carl van Schaik0ada41e1998-10-24 10:38:42 +00009#include "msdos.h"
10#include "drive.h"
11#include "winnt.h"
12
Patrik Stridvallb4b9fae1999-04-19 14:56:29 +000013DEFAULT_DEBUG_CHANNEL(int17)
14
Carl van Schaik0ada41e1998-10-24 10:38:42 +000015/**********************************************************************
16 * INT_Int17Handler
17 *
18 * Handler for int 17h (printer - output character).
19 */
Alexandre Julliard617955d1999-06-26 18:40:24 +000020void WINAPI INT_Int17Handler( CONTEXT86 *context )
Carl van Schaik0ada41e1998-10-24 10:38:42 +000021{
22 switch( AH_reg(context) )
23 {
24 case 0x01: /* PRINTER - INITIALIZE */
Alexandre Julliard61fece01999-06-26 19:09:08 +000025 FIXME("Initialize Printer - Not Supported\n");
Carl van Schaik0ada41e1998-10-24 10:38:42 +000026 AH_reg(context) = 0; /* time out */
27 break;
28 case 0x02: /* PRINTER - GET STATUS */
Alexandre Julliard61fece01999-06-26 19:09:08 +000029 FIXME("Get Printer Status - Not Supported\n");
Carl van Schaik0ada41e1998-10-24 10:38:42 +000030 break;
31 default:
32 AH_reg(context) = 0; /* time out */
33 INT_BARF( context, 0x17 );
34 }
35}