Removed obsolete flag definitions

This commit is contained in:
Jeff Parsons 2015-03-16 18:37:07 -07:00 committed by jeffpar
commit 8248268abe
3 changed files with 11 additions and 15 deletions

View file

@ -403,9 +403,9 @@ X86.fnDIVw = function DIVw(dst, src)
* is set, JavaScript will create a negative 32-bit number. So we instead use non-bit-wise operators
* to force JavaScript to create a floating-point value that won't suffer from 32-bit-math side-effects.
*/
src = this.regEAX + this.regEDX * X86.RESULT.SIZE_WORD;
src = this.regEAX + this.regEDX * 0x10000;
var uQuotient = Math.floor(src / dst);
if (uQuotient >= X86.RESULT.SIZE_WORD) {
if (uQuotient >= 0x10000) {
X86.fnDIVOverflow.call(this);
return dst;
}