mirror of
https://github.com/reactos/reactos.git
synced 2025-07-04 06:51:22 +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:
parent
acccaf3a90
commit
ace025dca9
2 changed files with 5 additions and 5 deletions
|
@ -566,7 +566,7 @@ FAST486_OPCODE_HANDLER(Fast486ExtOpcodeBitTest)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Normalize the bit number */
|
/* Normalize the bit number */
|
||||||
BitNumber &= (1 << DataSize) - 1;
|
BitNumber %= DataSize;
|
||||||
|
|
||||||
if (OperandSize)
|
if (OperandSize)
|
||||||
{
|
{
|
||||||
|
@ -748,7 +748,7 @@ FAST486_OPCODE_HANDLER(Fast486ExtOpcodeBts)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Normalize the bit number */
|
/* Normalize the bit number */
|
||||||
BitNumber &= (1 << DataSize) - 1;
|
BitNumber %= DataSize;
|
||||||
|
|
||||||
if (OperandSize)
|
if (OperandSize)
|
||||||
{
|
{
|
||||||
|
@ -1207,7 +1207,7 @@ FAST486_OPCODE_HANDLER(Fast486ExtOpcodeBtr)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Normalize the bit number */
|
/* Normalize the bit number */
|
||||||
BitNumber &= (1 << DataSize) - 1;
|
BitNumber %= DataSize;
|
||||||
|
|
||||||
if (OperandSize)
|
if (OperandSize)
|
||||||
{
|
{
|
||||||
|
@ -1432,7 +1432,7 @@ FAST486_OPCODE_HANDLER(Fast486ExtOpcodeBtc)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Normalize the bit number */
|
/* Normalize the bit number */
|
||||||
BitNumber &= (1 << DataSize) - 1;
|
BitNumber %= DataSize;
|
||||||
|
|
||||||
if (OperandSize)
|
if (OperandSize)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1921,7 +1921,7 @@ FAST486_OPCODE_HANDLER(Fast486OpcodeGroup0FBA)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Normalize the bit number */
|
/* Normalize the bit number */
|
||||||
BitNumber &= (1 << DataSize) - 1;
|
BitNumber %= DataSize;
|
||||||
|
|
||||||
if (OperandSize)
|
if (OperandSize)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue