Release 950403
[wine/multimedia.git] / miscemu / emulate.c
blob70d8153a332e94d6d84472af1a7b5b416b6452d6
1 #include <stdlib.h>
2 #include <stdio.h>
3 #include "wine.h"
4 #include "stddebug.h"
5 /* #define DEBUG_INT */
6 #include "debug.h"
8 struct Win87EmInfoStruct {
9 unsigned short Version;
10 unsigned short SizeSaveArea;
11 unsigned short WinDataSeg;
12 unsigned short WinCodeSeg;
13 unsigned short Have80x87;
14 unsigned short Unused;
17 void
18 WIN87_fpmath( struct sigcontext_struct context )
20 dprintf_int(stddeb, "_fpmath: (%x:%lx %x %x)\n",context.sc_cs,
21 context.sc_eip, context.sc_es, (int)context.sc_ebx & 0xffff );
23 switch(context.sc_ebx & 0xffff)
25 case 11:
26 context.sc_eax = 1;
27 break;
28 default:
29 context.sc_eax = 0;
30 break;
34 void
35 WIN87_WinEm87Info(struct Win87EmInfoStruct *pWIS, int cbWin87EmInfoStruct)
37 dprintf_int(stddeb, "__WinEm87Info(%p,%d)\n",pWIS,cbWin87EmInfoStruct);
40 void
41 WIN87_WinEm87Restore(void *pWin87EmSaveArea, int cbWin87EmSaveArea)
43 dprintf_int(stddeb, "__WinEm87Restore(%p,%d)\n",
44 pWin87EmSaveArea,cbWin87EmSaveArea);
47 void
48 WIN87_WinEm87Save(void *pWin87EmSaveArea, int cbWin87EmSaveArea)
50 dprintf_int(stddeb, "__WinEm87Save(%p,%d)\n",
51 pWin87EmSaveArea,cbWin87EmSaveArea);