|
|
| version 1.9, 2003/11/29 03:38:26 | version 1.10, 2003/12/04 13:54:28 |
|---|---|
| Line 122 I286_F6 _div_ea8(UINT op) { | Line 122 I286_F6 _div_ea8(UINT op) { |
| src = i286_memoryread(CALC_EA(op)); | src = i286_memoryread(CALC_EA(op)); |
| } | } |
| tmp = I286_AX; | tmp = I286_AX; |
| if (tmp < ((UINT16)src << 8)) { | if ((src) && (tmp < ((UINT16)src << 8))) { |
| I286_AL = tmp / src; | I286_AL = tmp / src; |
| I286_AH = tmp % src; | I286_AH = tmp % src; |
| } | } |
| Line 277 I286_F6 _div_ea16(UINT op) { | Line 277 I286_F6 _div_ea16(UINT op) { |
| src = i286_memoryread_w(CALC_EA(op)); | src = i286_memoryread_w(CALC_EA(op)); |
| } | } |
| tmp = (I286_DX << 16) + I286_AX; | tmp = (I286_DX << 16) + I286_AX; |
| if (tmp < (src << 16)) { | if ((src) && (tmp < (src << 16))) { |
| I286_AX = (SINT16)(tmp / src); | I286_AX = (SINT16)(tmp / src); |
| I286_DX = (SINT16)(tmp % src); | I286_DX = (SINT16)(tmp % src); |
| } | } |