Carl van Schaik | 0ada41e | 1998-10-24 10:38:42 +0000 | [diff] [blame] | 1 | /* |
| 2 | * BIOS interrupt 17h handler |
| 3 | */ |
| 4 | |
| 5 | #include <stdlib.h> |
| 6 | |
| 7 | #include "miscemu.h" |
Alexandre Julliard | 61fece0 | 1999-06-26 19:09:08 +0000 | [diff] [blame] | 8 | #include "debugtools.h" |
Carl van Schaik | 0ada41e | 1998-10-24 10:38:42 +0000 | [diff] [blame] | 9 | #include "msdos.h" |
| 10 | #include "drive.h" |
| 11 | #include "winnt.h" |
| 12 | |
Patrik Stridvall | b4b9fae | 1999-04-19 14:56:29 +0000 | [diff] [blame] | 13 | DEFAULT_DEBUG_CHANNEL(int17) |
| 14 | |
Carl van Schaik | 0ada41e | 1998-10-24 10:38:42 +0000 | [diff] [blame] | 15 | /********************************************************************** |
| 16 | * INT_Int17Handler |
| 17 | * |
| 18 | * Handler for int 17h (printer - output character). |
| 19 | */ |
Alexandre Julliard | 617955d | 1999-06-26 18:40:24 +0000 | [diff] [blame] | 20 | void WINAPI INT_Int17Handler( CONTEXT86 *context ) |
Carl van Schaik | 0ada41e | 1998-10-24 10:38:42 +0000 | [diff] [blame] | 21 | { |
| 22 | switch( AH_reg(context) ) |
| 23 | { |
| 24 | case 0x01: /* PRINTER - INITIALIZE */ |
Alexandre Julliard | 61fece0 | 1999-06-26 19:09:08 +0000 | [diff] [blame] | 25 | FIXME("Initialize Printer - Not Supported\n"); |
Carl van Schaik | 0ada41e | 1998-10-24 10:38:42 +0000 | [diff] [blame] | 26 | AH_reg(context) = 0; /* time out */ |
| 27 | break; |
| 28 | case 0x02: /* PRINTER - GET STATUS */ |
Alexandre Julliard | 61fece0 | 1999-06-26 19:09:08 +0000 | [diff] [blame] | 29 | FIXME("Get Printer Status - Not Supported\n"); |
Carl van Schaik | 0ada41e | 1998-10-24 10:38:42 +0000 | [diff] [blame] | 30 | break; |
| 31 | default: |
| 32 | AH_reg(context) = 0; /* time out */ |
| 33 | INT_BARF( context, 0x17 ); |
| 34 | } |
| 35 | } |