Previous 15994 Revisions Next

r7021 Tuesday 12th January, 2010 at 14:40:09 UTC by Dirk Best
i386: Only enable div bug on the Intel CPUs
[src/emu/cpu/i386]i386op16.c i386ops.c

src/emu/cpu/i386/i386op16.c
r7020r7021
26402640                  REG16(DX) = (UINT16)remainder;
26412641                  REG16(AX) = (UINT16)result;
26422642
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;
26452646               }
26462647            } else {
26472648               /* TODO: Divide by zero */
r7020r7021
26712672                  REG16(DX) = (UINT16)remainder;
26722673                  REG16(AX) = (UINT16)result;
26732674
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;
26762678               }
26772679            } else {
26782680               /* TODO: Divide by zero */
src/emu/cpu/i386/i386ops.c
r7020r7021
20242024                  REG8(AH) = (UINT8)remainder & 0xff;
20252025                  REG8(AL) = (UINT8)result & 0xff;
20262026
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;
20292030               }
20302031            } else {
20312032               /* TODO: Divide by zero */
r7020r7021
20552056                  REG8(AH) = (UINT8)remainder & 0xff;
20562057                  REG8(AL) = (UINT8)result & 0xff;
20572058
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;
20602062               }
20612063            } else {
20622064               /* TODO: Divide by zero */

Previous 15994 Revisions Next


© 1998-2018 The MESS Team