From 20083140da2fe681ed293537c325f86ffddcb274 Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Sun, 7 Sep 2003 10:28:18 +0000 Subject: [PATCH] Fixed 32-bit BSR Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1230 --- src/cpu/core_normal/prefix_66_0f.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpu/core_normal/prefix_66_0f.h b/src/cpu/core_normal/prefix_66_0f.h index dc100f62..8a61ae72 100644 --- a/src/cpu/core_normal/prefix_66_0f.h +++ b/src/cpu/core_normal/prefix_66_0f.h @@ -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;