| Previous | 15994 Revisions | Next |
| r7018 Tuesday 12th January, 2010 at 14:09:55 UTC by Dirk Best |
|---|
| i386: Fixed emulation of the DIV flag bug, we are now correctly detected as Intel 486DX instead of some Cyrix or TI CPU. |
| [src/emu/cpu/i386] | i386op16.c i386op32.c i386ops.c |
| r7017 | r7018 | |
|---|---|---|
| 2639 | 2639 | } else { |
| 2640 | 2640 | REG16(DX) = (UINT16)remainder; |
| 2641 | 2641 | REG16(AX) = (UINT16)result; |
| 2642 | ||
| 2643 | // this flag is actually undefined | |
| 2644 | cpustate->CF = 1; | |
| 2642 | 2645 | } |
| 2643 | 2646 | } else { |
| 2644 | 2647 | /* TODO: Divide by zero */ |
| r7017 | r7018 | |
| 2667 | 2670 | } else { |
| 2668 | 2671 | REG16(DX) = (UINT16)remainder; |
| 2669 | 2672 | REG16(AX) = (UINT16)result; |
| 2673 | ||
| 2674 | // this flag is actually undefined | |
| 2675 | cpustate->CF = 1; | |
| 2670 | 2676 | } |
| 2671 | 2677 | } else { |
| 2672 | 2678 | /* TODO: Divide by zero */ |
| r7017 | r7018 | |
|---|---|---|
| 2023 | 2023 | } else { |
| 2024 | 2024 | REG8(AH) = (UINT8)remainder & 0xff; |
| 2025 | 2025 | REG8(AL) = (UINT8)result & 0xff; |
| 2026 | ||
| 2027 | // this flag is actually undefined | |
| 2028 | cpustate->CF = 1; | |
| 2026 | 2029 | } |
| 2027 | 2030 | } else { |
| 2028 | 2031 | /* TODO: Divide by zero */ |
| r7017 | r7018 | |
| 2051 | 2054 | } else { |
| 2052 | 2055 | REG8(AH) = (UINT8)remainder & 0xff; |
| 2053 | 2056 | REG8(AL) = (UINT8)result & 0xff; |
| 2057 | ||
| 2058 | // this flag is actually undefined | |
| 2059 | cpustate->CF = 1; | |
| 2054 | 2060 | } |
| 2055 | 2061 | } else { |
| 2056 | 2062 | /* TODO: Divide by zero */ |
| r7017 | r7018 | |
|---|---|---|
| 2487 | 2487 | } else { |
| 2488 | 2488 | REG32(EDX) = (UINT32)remainder; |
| 2489 | 2489 | REG32(EAX) = (UINT32)result; |
| 2490 | ||
| 2491 | // this flag is actually undefined | |
| 2492 | cpustate->CF = 1; | |
| 2493 | 2490 | } |
| 2494 | 2491 | } else { |
| 2495 | 2492 | /* TODO: Divide by zero */ |
| r7017 | r7018 | |
| 2518 | 2515 | } else { |
| 2519 | 2516 | REG32(EDX) = (UINT32)remainder; |
| 2520 | 2517 | REG32(EAX) = (UINT32)result; |
| 2521 | ||
| 2522 | // this flag is actually undefined | |
| 2523 | cpustate->CF = 1; | |
| 2524 | 2518 | } |
| 2525 | 2519 | } else { |
| 2526 | 2520 | /* TODO: Divide by zero */ |
| Previous | 15994 Revisions | Next |