Author: aandrejevic
Date: Fri Nov  7 19:20:38 2014
New Revision: 65310

URL: http://svn.reactos.org/svn/reactos?rev=65310&view=rev
Log:
[FAST486]
Fix BT, BTC, BTS and BTR.


Modified:
    trunk/reactos/lib/fast486/extraops.c

Modified: trunk/reactos/lib/fast486/extraops.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/fast486/extraops.c?rev=65310&r1=65309&r2=65310&view=diff
==============================================================================
--- trunk/reactos/lib/fast486/extraops.c        [iso-8859-1] (original)
+++ trunk/reactos/lib/fast486/extraops.c        [iso-8859-1] Fri Nov  7 
19:20:38 2014
@@ -752,7 +752,7 @@
          * For memory operands, add the bit offset divided by
          * the data size to the address
          */
-        ModRegRm.MemoryAddress += BitNumber / DataSize;
+        ModRegRm.MemoryAddress += (BitNumber / DataSize) * (DataSize / 8);
     }
 
     /* Normalize the bit number */
@@ -936,7 +936,7 @@
          * For memory operands, add the bit offset divided by
          * the data size to the address
          */
-        ModRegRm.MemoryAddress += BitNumber / DataSize;
+        ModRegRm.MemoryAddress += (BitNumber / DataSize) * (DataSize / 8);
     }
 
     /* Normalize the bit number */
@@ -1378,7 +1378,7 @@
          * For memory operands, add the bit offset divided by
          * the data size to the address
          */
-        ModRegRm.MemoryAddress += BitNumber / DataSize;
+        ModRegRm.MemoryAddress += (BitNumber / DataSize) * (DataSize / 8);
     }
 
     /* Normalize the bit number */
@@ -1592,7 +1592,7 @@
          * For memory operands, add the bit offset divided by
          * the data size to the address
          */
-        ModRegRm.MemoryAddress += BitNumber / DataSize;
+        ModRegRm.MemoryAddress += (BitNumber / DataSize) * (DataSize / 8);
     }
 
     /* Normalize the bit number */


Reply via email to