a73e079ff75d66d0493edcfa837946a70c82046d
[reactos.git] / lib / fast486 / fpu.c
1 /*
2 * Fast486 386/486 CPU Emulation Library
3 * fpu.c
4 *
5 * Copyright (C) 2013 Aleksandar Andrejevic <theflash AT sdf DOT lonestar DOT org>
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 */
21
22 /* INCLUDES *******************************************************************/
23
24 #include <windef.h>
25
26 // #define NDEBUG
27 #include <debug.h>
28
29 #include <fast486.h>
30 #include "common.h"
31 #include "opcodes.h"
32 #include "fpu.h"
33
34 /* PUBLIC FUNCTIONS ***********************************************************/
35
36 FAST486_OPCODE_HANDLER(Fast486FpuOpcodeD8)
37 {
38 FPU_CHECK();
39
40 #ifndef FAST486_NO_FPU
41 // TODO: NOT IMPLEMENTED
42 UNIMPLEMENTED;
43
44 return FALSE;
45 #else
46 /* Do nothing */
47 return TRUE;
48 #endif
49 }
50
51 FAST486_OPCODE_HANDLER(Fast486FpuOpcodeD9)
52 {
53 FPU_CHECK();
54
55 #ifndef FAST486_NO_FPU
56 // TODO: NOT IMPLEMENTED
57 UNIMPLEMENTED;
58
59 return FALSE;
60 #else
61 /* Do nothing */
62 return TRUE;
63 #endif
64 }
65
66 FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDA)
67 {
68 FPU_CHECK();
69
70 #ifndef FAST486_NO_FPU
71 // TODO: NOT IMPLEMENTED
72 UNIMPLEMENTED;
73
74 return FALSE;
75 #else
76 /* Do nothing */
77 return TRUE;
78 #endif
79 }
80
81 FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDB)
82 {
83 FPU_CHECK();
84
85 #ifndef FAST486_NO_FPU
86 // TODO: NOT IMPLEMENTED
87 UNIMPLEMENTED;
88
89 return FALSE;
90 #else
91 /* Do nothing */
92 return TRUE;
93 #endif
94 }
95
96 FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDC)
97 {
98 FPU_CHECK();
99
100 #ifndef FAST486_NO_FPU
101 // TODO: NOT IMPLEMENTED
102 UNIMPLEMENTED;
103
104 return FALSE;
105 #else
106 /* Do nothing */
107 return TRUE;
108 #endif
109 }
110
111 FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDD)
112 {
113 FPU_CHECK();
114
115 #ifndef FAST486_NO_FPU
116 // TODO: NOT IMPLEMENTED
117 UNIMPLEMENTED;
118
119 return FALSE;
120 #else
121 /* Do nothing */
122 return TRUE;
123 #endif
124 }
125
126 FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDE)
127 {
128 FPU_CHECK();
129
130 #ifndef FAST486_NO_FPU
131 // TODO: NOT IMPLEMENTED
132 UNIMPLEMENTED;
133
134 return FALSE;
135 #else
136 /* Do nothing */
137 return TRUE;
138 #endif
139 }
140
141 FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDF)
142 {
143 FPU_CHECK();
144
145 #ifndef FAST486_NO_FPU
146 // TODO: NOT IMPLEMENTED
147 UNIMPLEMENTED;
148
149 return FALSE;
150 #else
151 /* Do nothing */
152 return TRUE;
153 #endif
154 }
155
156 /* EOF */