* 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 */
* 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 */
* 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 */
* 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 */