Fixed 32-bit BSR
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1230
This commit is contained in:
parent
21ca26be96
commit
20083140da
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue