private static int GetSize(X86OperandSize operandSize)
{
switch (operandSize)
{
case X86OperandSize.Byte:
return 1;
case X86OperandSize.Word:
return 2;
case X86OperandSize.WordOrDword:
case X86OperandSize.Dword:
return 4;
case X86OperandSize.Fword:
return 6;
}
throw new NotSupportedException();
}