Author: aandrejevic
Date: Wed Nov 13 18:14:01 2013
New Revision: 60975
URL:
http://svn.reactos.org/svn/reactos?rev=60975&view=rev
Log:
[FAST486]
The bit number should be normalized to [0, DataSize- 1], not [0, 2 ^ DataSize - 1].
Modified:
branches/ntvdm/lib/fast486/extraops.c
branches/ntvdm/lib/fast486/opgroups.c
Modified: branches/ntvdm/lib/fast486/extraops.c
URL:
http://svn.reactos.org/svn/reactos/branches/ntvdm/lib/fast486/extraops.c?re…
==============================================================================
--- branches/ntvdm/lib/fast486/extraops.c [iso-8859-1] (original)
+++ branches/ntvdm/lib/fast486/extraops.c [iso-8859-1] Wed Nov 13 18:14:01 2013
@@ -566,7 +566,7 @@
}
/* Normalize the bit number */
- BitNumber &= (1 << DataSize) - 1;
+ BitNumber %= DataSize;
if (OperandSize)
{
@@ -748,7 +748,7 @@
}
/* Normalize the bit number */
- BitNumber &= (1 << DataSize) - 1;
+ BitNumber %= DataSize;
if (OperandSize)
{
@@ -1207,7 +1207,7 @@
}
/* Normalize the bit number */
- BitNumber &= (1 << DataSize) - 1;
+ BitNumber %= DataSize;
if (OperandSize)
{
@@ -1432,7 +1432,7 @@
}
/* Normalize the bit number */
- BitNumber &= (1 << DataSize) - 1;
+ BitNumber %= DataSize;
if (OperandSize)
{
Modified: branches/ntvdm/lib/fast486/opgroups.c
URL:
http://svn.reactos.org/svn/reactos/branches/ntvdm/lib/fast486/opgroups.c?re…
==============================================================================
--- branches/ntvdm/lib/fast486/opgroups.c [iso-8859-1] (original)
+++ branches/ntvdm/lib/fast486/opgroups.c [iso-8859-1] Wed Nov 13 18:14:01 2013
@@ -1921,7 +1921,7 @@
}
/* Normalize the bit number */
- BitNumber &= (1 << DataSize) - 1;
+ BitNumber %= DataSize;
if (OperandSize)
{