Debian Codegraph @

src/cpu/core_full/op.h

raw symbols SCIP
1 /* Do the actual opcode */
2 switch (inst.code.op) {
3 case t_ADDb: case t_ADDw: case t_ADDd:
4 lf_var1d=inst_op1_d;
5 lf_var2d=inst_op2_d;
6 inst_op1_d=lf_resd=lf_var1d + lf_var2d;
7 lflags.type=inst.code.op;
8 break;
9 case t_CMPb: case t_CMPw: case t_CMPd:
10 case t_SUBb: case t_SUBw: case t_SUBd:
11 lf_var1d=inst_op1_d;
12 lf_var2d=inst_op2_d;
13 inst_op1_d=lf_resd=lf_var1d - lf_var2d;
14 lflags.type=inst.code.op;
15 break;
16 case t_ORb: case t_ORw: case t_ORd:
17 lf_var1d=inst_op1_d;
18 lf_var2d=inst_op2_d;
19 inst_op1_d=lf_resd=lf_var1d | lf_var2d;
20 lflags.type=inst.code.op;
21 break;
22 case t_XORb: case t_XORw: case t_XORd:
23 lf_var1d=inst_op1_d;
24 lf_var2d=inst_op2_d;
25 inst_op1_d=lf_resd=lf_var1d ^ lf_var2d;
26 lflags.type=inst.code.op;
27 break;
28 case t_TESTb: case t_TESTw: case t_TESTd:
29 case t_ANDb: case t_ANDw: case t_ANDd:
30 lf_var1d=inst_op1_d;
31 lf_var2d=inst_op2_d;
32 inst_op1_d=lf_resd=lf_var1d & lf_var2d;
33 lflags.type=inst.code.op;
34 break;
35 case t_ADCb: case t_ADCw: case t_ADCd:
36 lflags.oldcf=(get_CF()!=0);
37 lf_var1d=inst_op1_d;
38 lf_var2d=inst_op2_d;
39 inst_op1_d=lf_resd=lf_var1d + lf_var2d + lflags.oldcf;
40 lflags.type=inst.code.op;
41 break;
42 case t_SBBb: case t_SBBw: case t_SBBd:
43 lflags.oldcf=(get_CF()!=0);
44 lf_var1d=inst_op1_d;
45 lf_var2d=inst_op2_d;
46 inst_op1_d=lf_resd=lf_var1d - lf_var2d - lflags.oldcf;
47 lflags.type=inst.code.op;
48 break;
49 case t_INCb: case t_INCw: case t_INCd:
50 LoadCF;
51 lf_var1d=inst_op1_d;
52 inst_op1_d=lf_resd=inst_op1_d+1;
53 lflags.type=inst.code.op;
54 break;
55 case t_DECb: case t_DECw: case t_DECd:
56 LoadCF;
57 lf_var1d=inst_op1_d;
58 inst_op1_d=lf_resd=inst_op1_d-1;
59 lflags.type=inst.code.op;
60 break;
61 /* Using the instructions.h defines */
62 case t_ROLb:
63 ROLB(inst_op1_b,inst_op2_b,LoadD,SaveD);
64 break;
65 case t_ROLw:
66 ROLW(inst_op1_w,inst_op2_b,LoadD,SaveD);
67 break;
68 case t_ROLd:
69 ROLD(inst_op1_d,inst_op2_b,LoadD,SaveD);
70 break;
71
72 case t_RORb:
73 RORB(inst_op1_b,inst_op2_b,LoadD,SaveD);
74 break;
75 case t_RORw:
76 RORW(inst_op1_w,inst_op2_b,LoadD,SaveD);
77 break;
78 case t_RORd:
79 RORD(inst_op1_d,inst_op2_b,LoadD,SaveD);
80 break;
81
82 case t_RCLb:
83 RCLB(inst_op1_b,inst_op2_b,LoadD,SaveD);
84 break;
85 case t_RCLw:
86 RCLW(inst_op1_w,inst_op2_b,LoadD,SaveD);
87 break;
88 case t_RCLd:
89 RCLD(inst_op1_d,inst_op2_b,LoadD,SaveD);
90 break;
91
92 case t_RCRb:
93 RCRB(inst_op1_b,inst_op2_b,LoadD,SaveD);
94 break;
95 case t_RCRw:
96 RCRW(inst_op1_w,inst_op2_b,LoadD,SaveD);
97 break;
98 case t_RCRd:
99 RCRD(inst_op1_d,inst_op2_b,LoadD,SaveD);
100 break;
101
102 case t_SHLb:
103 SHLB(inst_op1_b,inst_op2_b,LoadD,SaveD);
104 break;
105 case t_SHLw:
106 SHLW(inst_op1_w,inst_op2_b,LoadD,SaveD);
107 break;
108 case t_SHLd:
109 SHLD(inst_op1_d,inst_op2_b,LoadD,SaveD);
110 break;
111
112 case t_SHRb:
113 SHRB(inst_op1_b,inst_op2_b,LoadD,SaveD);
114 break;
115 case t_SHRw:
116 SHRW(inst_op1_w,inst_op2_b,LoadD,SaveD);
117 break;
118 case t_SHRd:
119 SHRD(inst_op1_d,inst_op2_b,LoadD,SaveD);
120 break;
121
122 case t_SARb:
123 SARB(inst_op1_b,inst_op2_b,LoadD,SaveD);
124 break;
125 case t_SARw:
126 SARW(inst_op1_w,inst_op2_b,LoadD,SaveD);
127 break;
128 case t_SARd:
129 SARD(inst_op1_d,inst_op2_b,LoadD,SaveD);
130 break;
131
132 case O_DSHLw:
133 {
134 DSHLW(inst_op1_w,inst_op2_w,inst_imm_b,LoadD,SaveD);
135 break;
136 }
137 case O_DSHRw:
138 {
139 DSHRW(inst_op1_w,inst_op2_w,inst_imm_b,LoadD,SaveD);
140 break;
141 }
142 case O_DSHLd:
143 {
144 DSHLD(inst_op1_d,inst_op2_d,inst_imm_b,LoadD,SaveD);
145 break;
146 }
147 case O_DSHRd:
148 {
149 DSHRD(inst_op1_d,inst_op2_d,inst_imm_b,LoadD,SaveD);
150 break;
151 }
152
153 case t_NEGb:
154 lf_var1b=inst_op1_b;
155 inst_op1_b=lf_resb=0-inst_op1_b;
156 lflags.type=t_NEGb;
157 break;
158 case t_NEGw:
159 lf_var1w=inst_op1_w;
160 inst_op1_w=lf_resw=0-inst_op1_w;
161 lflags.type=t_NEGw;
162 break;
163 case t_NEGd:
164 lf_var1d=inst_op1_d;
165 inst_op1_d=lf_resd=0-inst_op1_d;
166 lflags.type=t_NEGd;
167 break;
168
169 case O_NOT:
170 inst_op1_d=~inst_op1_d;
171 break;
172
173 /* Special instructions */
174 case O_IMULRw:
175 DIMULW(inst_op1_ws,inst_op1_ws,inst_op2_ws,LoadD,SaveD);
176 break;
177 case O_IMULRd:
178 DIMULD(inst_op1_ds,inst_op1_ds,inst_op2_ds,LoadD,SaveD);
179 break;
180 case O_MULb:
181 MULB(inst_op1_b,LoadD,0);
182 goto nextopcode;
183 case O_MULw:
184 MULW(inst_op1_w,LoadD,0);
185 goto nextopcode;
186 case O_MULd:
187 MULD(inst_op1_d,LoadD,0);
188 goto nextopcode;
189 case O_IMULb:
190 IMULB(inst_op1_b,LoadD,0);
191 goto nextopcode;
192 case O_IMULw:
193 IMULW(inst_op1_w,LoadD,0);
194 goto nextopcode;
195 case O_IMULd:
196 IMULD(inst_op1_d,LoadD,0);
197 goto nextopcode;
198 case O_DIVb:
199 DIVB(inst_op1_b,LoadD,0);
200 goto nextopcode;
201 case O_DIVw:
202 DIVW(inst_op1_w,LoadD,0);
203 goto nextopcode;
204 case O_DIVd:
205 DIVD(inst_op1_d,LoadD,0);
206 goto nextopcode;
207 case O_IDIVb:
208 IDIVB(inst_op1_b,LoadD,0);
209 goto nextopcode;
210 case O_IDIVw:
211 IDIVW(inst_op1_w,LoadD,0);
212 goto nextopcode;
213 case O_IDIVd:
214 IDIVD(inst_op1_d,LoadD,0);
215 goto nextopcode;
216 case O_AAM:
217 AAM(inst_op1_b);
218 goto nextopcode;
219 case O_AAD:
220 AAD(inst_op1_b);
221 goto nextopcode;
222
223 case O_C_O: inst.cond=TFLG_O; break;
224 case O_C_NO: inst.cond=TFLG_NO; break;
225 case O_C_B: inst.cond=TFLG_B; break;
226 case O_C_NB: inst.cond=TFLG_NB; break;
227 case O_C_Z: inst.cond=TFLG_Z; break;
228 case O_C_NZ: inst.cond=TFLG_NZ; break;
229 case O_C_BE: inst.cond=TFLG_BE; break;
230 case O_C_NBE: inst.cond=TFLG_NBE; break;
231 case O_C_S: inst.cond=TFLG_S; break;
232 case O_C_NS: inst.cond=TFLG_NS; break;
233 case O_C_P: inst.cond=TFLG_P; break;
234 case O_C_NP: inst.cond=TFLG_NP; break;
235 case O_C_L: inst.cond=TFLG_L; break;
236 case O_C_NL: inst.cond=TFLG_NL; break;
237 case O_C_LE: inst.cond=TFLG_LE; break;
238 case O_C_NLE: inst.cond=TFLG_NLE; break;
239
240 case O_ALOP:
241 reg_al=LoadMb(inst.rm_eaa);
242 goto nextopcode;
243 case O_AXOP:
244 reg_ax=LoadMw(inst.rm_eaa);
245 goto nextopcode;
246 case O_EAXOP:
247 reg_eax=LoadMd(inst.rm_eaa);
248 goto nextopcode;
249 case O_OPAL:
250 SaveMb(inst.rm_eaa,reg_al);
251 goto nextopcode;
252 case O_OPAX:
253 SaveMw(inst.rm_eaa,reg_ax);
254 goto nextopcode;
255 case O_OPEAX:
256 SaveMd(inst.rm_eaa,reg_eax);
257 goto nextopcode;
258 case O_SEGDS:
259 inst.code.extra=ds;
260 break;
261 case O_SEGES:
262 inst.code.extra=es;
263 break;
264 case O_SEGFS:
265 inst.code.extra=fs;
266 break;
267 case O_SEGGS:
268 inst.code.extra=gs;
269 break;
270 case O_SEGSS:
271 inst.code.extra=ss;
272 break;
273
274 case O_LOOP:
275 if (inst.prefix & PREFIX_ADDR) {
276 if (--reg_ecx) break;
277 } else {
278 if (--reg_cx) break;
279 }
280 goto nextopcode;
281 case O_LOOPZ:
282 if (inst.prefix & PREFIX_ADDR) {
283 if (--reg_ecx && get_ZF()) break;
284 } else {
285 if (--reg_cx && get_ZF()) break;
286 }
287 goto nextopcode;
288 case O_LOOPNZ:
289 if (inst.prefix & PREFIX_ADDR) {
290 if (--reg_ecx && !get_ZF()) break;
291 } else {
292 if (--reg_cx && !get_ZF()) break;
293 }
294 goto nextopcode;
295 case O_JCXZ:
296 if (inst.prefix & PREFIX_ADDR) {
297 if (reg_ecx) goto nextopcode;
298 } else {
299 if (reg_cx) goto nextopcode;
300 }
301 break;
302 case O_XCHG_AX:
303 {
304 Bit16u temp=reg_ax;
305 reg_ax=inst_op1_w;
306 inst_op1_w=temp;
307 break;
308 }
309 case O_XCHG_EAX:
310 {
311 Bit32u temp=reg_eax;
312 reg_eax=inst_op1_d;
313 inst_op1_d=temp;
314 break;
315 }
316 case O_CALLNw:
317 SaveIP();
318 Push_16(reg_ip);
319 break;
320 case O_CALLNd:
321 SaveIP();
322 Push_32(reg_eip);
323 break;
324 case O_CALLFw:
325 FillFlags();
326 CPU_CALL(false,inst_op2_d,inst_op1_d,GetIP());
327 continue;
328 case O_CALLFd:
329 FillFlags();
330 CPU_CALL(true,inst_op2_d,inst_op1_d,GetIP());
331 continue;
332 case O_JMPFw:
333 FillFlags();
334 CPU_JMP(false,inst_op2_d,inst_op1_d,GetIP());
335 continue;
336 case O_JMPFd:
337 FillFlags();
338 CPU_JMP(true,inst_op2_d,inst_op1_d,GetIP());
339 continue;
340 case O_INT:
341 #if C_DEBUG
342 FillFlags();
343 if (((inst.entry & 0xFF)==0xcc) && DEBUG_Breakpoint())
344 return debugCallback;
345 else if (DEBUG_IntBreakpoint(inst_op1_b))
346 return debugCallback;
347 #endif
348 CPU_SW_Interrupt(inst_op1_b,GetIP());
349 continue;
350 case O_INb:
351 if (CPU_IO_Exception(inst_op1_d,1)) RunException();
352 reg_al=IO_ReadB(inst_op1_d);
353 goto nextopcode;
354 case O_INw:
355 if (CPU_IO_Exception(inst_op1_d,2)) RunException();
356 reg_ax=IO_ReadW(inst_op1_d);
357 goto nextopcode;
358 case O_INd:
359 if (CPU_IO_Exception(inst_op1_d,4)) RunException();
360 reg_eax=IO_ReadD(inst_op1_d);
361 goto nextopcode;
362 case O_OUTb:
363 if (CPU_IO_Exception(inst_op1_d,1)) RunException();
364 IO_WriteB(inst_op1_d,reg_al);
365 goto nextopcode;
366 case O_OUTw:
367 if (CPU_IO_Exception(inst_op1_d,2)) RunException();
368 IO_WriteW(inst_op1_d,reg_ax);
369 goto nextopcode;
370 case O_OUTd:
371 if (CPU_IO_Exception(inst_op1_d,4)) RunException();
372 IO_WriteD(inst_op1_d,reg_eax);
373 goto nextopcode;
374 case O_CBACK:
375 FillFlags();SaveIP();
376 return inst_op1_d;
377 case O_GRP6w:
378 case O_GRP6d:
379 if ((reg_flags & FLAG_VM) || (!cpu.pmode)) goto illegalopcode;
380 switch (inst.rm_index) {
381 case 0x00: /* SLDT */
382 inst_op1_d=(Bit32u)CPU_SLDT();
383 break;
384 case 0x01: /* STR */
385 inst_op1_d=(Bit32u)CPU_STR();
386 break;
387 case 0x02: /* LLDT */
388 if (cpu.cpl) EXCEPTION(EXCEPTION_GP);
389 if (CPU_LLDT(inst_op1_d)) RunException();
390 goto nextopcode; /* Else value will saved */
391 case 0x03: /* LTR */
392 if (cpu.cpl) EXCEPTION(EXCEPTION_GP);
393 if (CPU_LTR(inst_op1_d)) RunException();
394 goto nextopcode; /* Else value will saved */
395 case 0x04: /* VERR */
396 CPU_VERR(inst_op1_d);
397 goto nextopcode; /* Else value will saved */
398 case 0x05: /* VERW */
399 CPU_VERW(inst_op1_d);
400 goto nextopcode; /* Else value will saved */
401 default:
402 LOG(LOG_CPU,LOG_ERROR)("Group 6 Illegal subfunction %X",inst.rm_index);
403 goto illegalopcode;
404 }
405 break;
406 case O_GRP7w:
407 case O_GRP7d:
408 switch (inst.rm_index) {
409 case 0: /* SGDT */
410 SaveMw(inst.rm_eaa,CPU_SGDT_limit());
411 SaveMd(inst.rm_eaa+2,CPU_SGDT_base());
412 goto nextopcode;
413 case 1: /* SIDT */
414 SaveMw(inst.rm_eaa,CPU_SIDT_limit());
415 SaveMd(inst.rm_eaa+2,CPU_SIDT_base());
416 goto nextopcode;
417 case 2: /* LGDT */
418 if (cpu.pmode && cpu.cpl) EXCEPTION(EXCEPTION_GP);
419 CPU_LGDT(LoadMw(inst.rm_eaa),LoadMd(inst.rm_eaa+2)&((inst.code.op == O_GRP7w) ? 0xFFFFFF : 0xFFFFFFFF));
420 goto nextopcode;
421 case 3: /* LIDT */
422 if (cpu.pmode && cpu.cpl) EXCEPTION(EXCEPTION_GP);
423 CPU_LIDT(LoadMw(inst.rm_eaa),LoadMd(inst.rm_eaa+2)&((inst.code.op == O_GRP7w) ? 0xFFFFFF : 0xFFFFFFFF));
424 goto nextopcode;
425 case 4: /* SMSW */
426 inst_op1_d=CPU_SMSW();
427 break;
428 case 6: /* LMSW */
429 FillFlags();
430 if (CPU_LMSW(inst_op1_w)) RunException();
431 goto nextopcode;
432 case 7: /* INVLPG */
433 if (cpu.pmode && cpu.cpl) EXCEPTION(EXCEPTION_GP);
434 FillFlags();
435 PAGING_ClearTLB();
436 goto nextopcode;
437 default:
438 LOG(LOG_CPU,LOG_ERROR)("Group 7 Illegal subfunction %X",inst.rm_index);
439 goto illegalopcode;
440 }
441 break;
442 case O_M_CRx_Rd:
443 if (CPU_WRITE_CRX(inst.rm_index,inst_op1_d)) RunException();
444 break;
445 case O_M_Rd_CRx:
446 if (CPU_READ_CRX(inst.rm_index,inst_op1_d)) RunException();
447 break;
448 case O_M_DRx_Rd:
449 if (CPU_WRITE_DRX(inst.rm_index,inst_op1_d)) RunException();
450 break;
451 case O_M_Rd_DRx:
452 if (CPU_READ_DRX(inst.rm_index,inst_op1_d)) RunException();
453 break;
454 case O_M_TRx_Rd:
455 if (CPU_WRITE_TRX(inst.rm_index,inst_op1_d)) RunException();
456 break;
457 case O_M_Rd_TRx:
458 if (CPU_READ_TRX(inst.rm_index,inst_op1_d)) RunException();
459 break;
460 case O_LAR:
461 {
462 Bitu ar=inst_op2_d;
463 CPU_LAR(inst_op1_w,ar);
464 inst_op1_d=(Bit32u)ar;
465 }
466 break;
467 case O_LSL:
468 {
469 Bitu limit=inst_op2_d;
470 CPU_LSL(inst_op1_w,limit);
471 inst_op1_d=(Bit32u)limit;
472 }
473 break;
474 case O_ARPL:
475 {
476 Bitu new_sel=inst_op1_d;
477 CPU_ARPL(new_sel,inst_op2_d);
478 inst_op1_d=(Bit32u)new_sel;
479 }
480 break;
481 case O_BSFw:
482 {
483 FillFlags();
484 if (!inst_op1_w) {
485 SETFLAGBIT(ZF,true);
486 goto nextopcode;
487 } else {
488 Bitu count=0;
489 while (1) {
490 if (inst_op1_w & 0x1) break;
491 count++;inst_op1_w>>=1;
492 }
493 inst_op1_d=count;
494 SETFLAGBIT(ZF,false);
495 }
496 }
497 break;
498 case O_BSFd:
499 {
500 FillFlags();
501 if (!inst_op1_d) {
502 SETFLAGBIT(ZF,true);
503 goto nextopcode;
504 } else {
505 Bitu count=0;
506 while (1) {
507 if (inst_op1_d & 0x1) break;
508 count++;inst_op1_d>>=1;
509 }
510 inst_op1_d=count;
511 SETFLAGBIT(ZF,false);
512 }
513 }
514 break;
515 case O_BSRw:
516 {
517 FillFlags();
518 if (!inst_op1_w) {
519 SETFLAGBIT(ZF,true);
520 goto nextopcode;
521 } else {
522 Bitu count=15;
523 while (1) {
524 if (inst_op1_w & 0x8000) break;
525 count--;inst_op1_w<<=1;
526 }
527 inst_op1_d=count;
528 SETFLAGBIT(ZF,false);
529 }
530 }
531 break;
532 case O_BSRd:
533 {
534 FillFlags();
535 if (!inst_op1_d) {
536 SETFLAGBIT(ZF,true);
537 goto nextopcode;
538 } else {
539 Bitu count=31;
540 while (1) {
541 if (inst_op1_d & 0x80000000) break;
542 count--;inst_op1_d<<=1;
543 }
544 inst_op1_d=count;
545 SETFLAGBIT(ZF,false);
546 }
547 }
548 break;
549 case O_BTw:
550 FillFlags();
551 SETFLAGBIT(CF,(inst_op1_d & (1 << (inst_op2_d & 15))));
552 break;
553 case O_BTSw:
554 FillFlags();
555 SETFLAGBIT(CF,(inst_op1_d & (1 << (inst_op2_d & 15))));
556 inst_op1_d|=(1 << (inst_op2_d & 15));
557 break;
558 case O_BTCw:
559 FillFlags();
560 SETFLAGBIT(CF,(inst_op1_d & (1 << (inst_op2_d & 15))));
561 inst_op1_d^=(1 << (inst_op2_d & 15));
562 break;
563 case O_BTRw:
564 FillFlags();
565 SETFLAGBIT(CF,(inst_op1_d & (1 << (inst_op2_d & 15))));
566 inst_op1_d&=~(1 << (inst_op2_d & 15));
567 break;
568 case O_BTd:
569 FillFlags();
570 SETFLAGBIT(CF,(inst_op1_d & (1 << (inst_op2_d & 31))));
571 break;
572 case O_BTSd:
573 FillFlags();
574 SETFLAGBIT(CF,(inst_op1_d & (1 << (inst_op2_d & 31))));
575 inst_op1_d|=(1 << (inst_op2_d & 31));
576 break;
577 case O_BTCd:
578 FillFlags();
579 SETFLAGBIT(CF,(inst_op1_d & (1 << (inst_op2_d & 31))));
580 inst_op1_d^=(1 << (inst_op2_d & 31));
581 break;
582 case O_BTRd:
583 FillFlags();
584 SETFLAGBIT(CF,(inst_op1_d & (1 << (inst_op2_d & 31))));
585 inst_op1_d&=~(1 << (inst_op2_d & 31));
586 break;
587 case O_BSWAPw:
588 if (CPU_ArchitectureType<CPU_ARCHTYPE_486OLDSLOW) goto illegalopcode;
589 BSWAPW(inst_op1_w);
590 break;
591 case O_BSWAPd:
592 if (CPU_ArchitectureType<CPU_ARCHTYPE_486OLDSLOW) goto illegalopcode;
593 BSWAPD(inst_op1_d);
594 break;
595 case O_CMPXCHG:
596 if (CPU_ArchitectureType<CPU_ARCHTYPE_486NEWSLOW) goto illegalopcode;
597 FillFlags();
598 if (inst_op1_d==reg_eax) {
599 inst_op1_d=reg_32(inst.rm_index);
600 if (inst.rm<0xc0) SaveMd(inst.rm_eaa,inst_op1_d); // early write-pf
601 SETFLAGBIT(ZF,1);
602 } else {
603 if (inst.rm<0xc0) SaveMd(inst.rm_eaa,inst_op1_d); // early write-pf
604 reg_eax=inst_op1_d;
605 SETFLAGBIT(ZF,0);
606 }
607 break;
608 case O_FPU:
609 #if C_FPU
610 switch (((inst.rm>=0xc0) << 3) | inst.code.save) {
611 case 0x00: FPU_ESC0_EA(inst.rm,inst.rm_eaa);break;
612 case 0x01: FPU_ESC1_EA(inst.rm,inst.rm_eaa);break;
613 case 0x02: FPU_ESC2_EA(inst.rm,inst.rm_eaa);break;
614 case 0x03: FPU_ESC3_EA(inst.rm,inst.rm_eaa);break;
615 case 0x04: FPU_ESC4_EA(inst.rm,inst.rm_eaa);break;
616 case 0x05: FPU_ESC5_EA(inst.rm,inst.rm_eaa);break;
617 case 0x06: FPU_ESC6_EA(inst.rm,inst.rm_eaa);break;
618 case 0x07: FPU_ESC7_EA(inst.rm,inst.rm_eaa);break;
619
620 case 0x08: FPU_ESC0_Normal(inst.rm);break;
621 case 0x09: FPU_ESC1_Normal(inst.rm);break;
622 case 0x0a: FPU_ESC2_Normal(inst.rm);break;
623 case 0x0b: FPU_ESC3_Normal(inst.rm);break;
624 case 0x0c: FPU_ESC4_Normal(inst.rm);break;
625 case 0x0d: FPU_ESC5_Normal(inst.rm);break;
626 case 0x0e: FPU_ESC6_Normal(inst.rm);break;
627 case 0x0f: FPU_ESC7_Normal(inst.rm);break;
628 }
629 goto nextopcode;
630 #else
631 LOG(LOG_CPU,LOG_ERROR)("Unhandled FPU ESCAPE %d",inst.code.save);
632 goto nextopcode;
633 #endif
634 case O_BOUNDw:
635 {
636 Bit16s bound_min, bound_max;
637 bound_min=LoadMw(inst.rm_eaa);
638 bound_max=LoadMw(inst.rm_eaa+2);
639 if ( (((Bit16s)inst_op1_w) < bound_min) || (((Bit16s)inst_op1_w) > bound_max) ) {
640 EXCEPTION(5);
641 }
642 }
643 break;
644 case 0:
645 break;
646 default:
647 LOG(LOG_CPU,LOG_ERROR)("OP:Unhandled code %d entry %X",inst.code.op,inst.entry);
648
649 }