src/emu/cpu/i386/i386op16.c
| r7020 | r7021 | |
| 2640 | 2640 | REG16(DX) = (UINT16)remainder; |
| 2641 | 2641 | REG16(AX) = (UINT16)result; |
| 2642 | 2642 | |
| 2643 | | // this flag is actually undefined |
| 2644 | | cpustate->CF = 1; |
| 2643 | // this flag is actually undefined, enable on non-cyrix |
| 2644 | if (cpustate->cpuid_id0 != 0x69727943) |
| 2645 | cpustate->CF = 1; |
| 2645 | 2646 | } |
| 2646 | 2647 | } else { |
| 2647 | 2648 | /* TODO: Divide by zero */ |
| r7020 | r7021 | |
| 2671 | 2672 | REG16(DX) = (UINT16)remainder; |
| 2672 | 2673 | REG16(AX) = (UINT16)result; |
| 2673 | 2674 | |
| 2674 | | // this flag is actually undefined |
| 2675 | | cpustate->CF = 1; |
| 2675 | // this flag is actually undefined, enable on non-cyrix |
| 2676 | if (cpustate->cpuid_id0 != 0x69727943) |
| 2677 | cpustate->CF = 1; |
| 2676 | 2678 | } |
| 2677 | 2679 | } else { |
| 2678 | 2680 | /* TODO: Divide by zero */ |
src/emu/cpu/i386/i386ops.c
| r7020 | r7021 | |
| 2024 | 2024 | REG8(AH) = (UINT8)remainder & 0xff; |
| 2025 | 2025 | REG8(AL) = (UINT8)result & 0xff; |
| 2026 | 2026 | |
| 2027 | | // this flag is actually undefined |
| 2028 | | cpustate->CF = 1; |
| 2027 | // this flag is actually undefined, enable on non-cyrix |
| 2028 | if (cpustate->cpuid_id0 != 0x69727943) |
| 2029 | cpustate->CF = 1; |
| 2029 | 2030 | } |
| 2030 | 2031 | } else { |
| 2031 | 2032 | /* TODO: Divide by zero */ |
| r7020 | r7021 | |
| 2055 | 2056 | REG8(AH) = (UINT8)remainder & 0xff; |
| 2056 | 2057 | REG8(AL) = (UINT8)result & 0xff; |
| 2057 | 2058 | |
| 2058 | | // this flag is actually undefined |
| 2059 | | cpustate->CF = 1; |
| 2059 | // this flag is actually undefined, enable on non-cyrix |
| 2060 | if (cpustate->cpuid_id0 != 0x69727943) |
| 2061 | cpustate->CF = 1; |
| 2060 | 2062 | } |
| 2061 | 2063 | } else { |
| 2062 | 2064 | /* TODO: Divide by zero */ |