Release 940804
[wine/gsoc-2012-control.git] / miscemu / emulate.c
blob1b695031ea6a888d9475c26c37176e99b4af141d
1 #include <stdlib.h>
2 #include <stdio.h>
3 #include "prototypes.h"
4 #include "regfunc.h"
6 struct Win87EmInfoStruct {
7 unsigned short Version;
8 unsigned short SizeSaveArea;
9 unsigned short WinDataSeg;
10 unsigned short WinCodeSeg;
11 unsigned short Have80x87;
12 unsigned short Unused;
15 int
16 WIN87_fpmath()
18 printf( "_fpmath: (%x:%x %x %x)\n",_CONTEXT->sc_cs, _CONTEXT->sc_eip,
19 _CONTEXT->sc_es, _BX & 0xffff);
21 switch(_BX & 0xffff)
23 case 11:
24 return 1;
25 default:
26 return 0;
31 int
32 WIN87_WinEm87Info(struct Win87EmInfoStruct *pWIS, int cbWin87EmInfoStruct)
34 printf( "__WinEm87Info(%p,%d)\n",pWIS,cbWin87EmInfoStruct);
37 int
38 WIN87_WinEm87Restore(void *pWin87EmSaveArea, int cbWin87EmSaveArea)
40 printf( "__WinEm87Restore(%p,%d)\n",pWin87EmSaveArea,cbWin87EmSaveArea);
43 int
44 WIN87_WinEm87Save(void *pWin87EmSaveArea, int cbWin87EmSaveArea)
46 printf( "__WinEm87Save(%p,%d)\n",pWin87EmSaveArea,cbWin87EmSaveArea);