[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:
Aleksandar Andrejevic 2013-11-13 18:14:01 +00:00
parent acccaf3a90
commit ace025dca9
2 changed files with 5 additions and 5 deletions

View file

@ -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)
{

View file

@ -1921,7 +1921,7 @@ FAST486_OPCODE_HANDLER(Fast486OpcodeGroup0FBA)
}
/* Normalize the bit number */
BitNumber &= (1 << DataSize) - 1;
BitNumber %= DataSize;
if (OperandSize)
{