- New implementation of SendMessage, ReceiveMessage, ReplyMessage functions
[wine] / msdos / int15.c
1 /*
2  * BIOS interrupt 15h handler
3  */
4
5 #include <stdlib.h>
6 #include "miscemu.h"
7 #include "debug.h"
8
9
10 /**********************************************************************
11  *          INT_Int15Handler
12  *
13  * Handler for int 15h (old cassette interrupt).
14  */
15 void WINAPI INT_Int15Handler( CONTEXT *context )
16 {
17     switch(AH_reg(context))
18     {
19     case 0x88: /* get size of memory above 1 M */
20         AX_reg(context) = 64;  /* FIXME: are 64K ok? */
21         RESET_CFLAG(context);
22         break;
23
24     case 0xc0: /* GET CONFIGURATION */
25         if (ISV86(context)) /* real */
26             ES_reg(context) = 0xf000;
27         else
28             ES_reg(context) = DOSMEM_BiosSysSeg;
29         BX_reg(context) = 0xe6f5;
30         AH_reg(context) = 0x0;
31         RESET_CFLAG(context);
32         break;
33
34     default:
35         INT_BARF( context, 0x15 );
36     }
37 }