1
0
Fork 0

Fixed 32-bit BSR

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1230
This commit is contained in:
Sjoerd van der Berg 2003-09-07 10:28:18 +00:00
parent 21ca26be96
commit 20083140da

View file

@ -336,7 +336,7 @@
if (value==0) {
SETFLAGBIT(ZF,true);
} else {
result = 35; // Operandsize-1
result = 31; // Operandsize-1
while ((value & 0x80000000)==0) { result--; value<<=1; }
SETFLAGBIT(ZF,false);
*rmrd = result;