mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-01 04:13:35 +00:00
[FAST486]
The bit number should be normalized to [0, DataSize- 1], not [0, 2 ^ DataSize - 1]. svn path=/branches/ntvdm/; revision=60975
This commit is contained in:
@@ -566,7 +566,7 @@ FAST486_OPCODE_HANDLER(Fast486ExtOpcodeBitTest)
|
||||
}
|
||||
|
||||
/* Normalize the bit number */
|
||||
BitNumber &= (1 << DataSize) - 1;
|
||||
BitNumber %= DataSize;
|
||||
|
||||
if (OperandSize)
|
||||
{
|
||||
@@ -748,7 +748,7 @@ FAST486_OPCODE_HANDLER(Fast486ExtOpcodeBts)
|
||||
}
|
||||
|
||||
/* Normalize the bit number */
|
||||
BitNumber &= (1 << DataSize) - 1;
|
||||
BitNumber %= DataSize;
|
||||
|
||||
if (OperandSize)
|
||||
{
|
||||
@@ -1207,7 +1207,7 @@ FAST486_OPCODE_HANDLER(Fast486ExtOpcodeBtr)
|
||||
}
|
||||
|
||||
/* Normalize the bit number */
|
||||
BitNumber &= (1 << DataSize) - 1;
|
||||
BitNumber %= DataSize;
|
||||
|
||||
if (OperandSize)
|
||||
{
|
||||
@@ -1432,7 +1432,7 @@ FAST486_OPCODE_HANDLER(Fast486ExtOpcodeBtc)
|
||||
}
|
||||
|
||||
/* Normalize the bit number */
|
||||
BitNumber &= (1 << DataSize) - 1;
|
||||
BitNumber %= DataSize;
|
||||
|
||||
if (OperandSize)
|
||||
{
|
||||
|
||||
@@ -1921,7 +1921,7 @@ FAST486_OPCODE_HANDLER(Fast486OpcodeGroup0FBA)
|
||||
}
|
||||
|
||||
/* Normalize the bit number */
|
||||
BitNumber &= (1 << DataSize) - 1;
|
||||
BitNumber %= DataSize;
|
||||
|
||||
if (OperandSize)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user