OpCodes.Shr Campo
Definição
Desloca um valor de inteiro (no logon) para a direita em um número especificado de bits, efetuando o push do resultado para a pilha de avaliação.Shifts an integer value (in sign) to the right by a specified number of bits, pushing the result onto the evaluation stack.
public: static initonly System::Reflection::Emit::OpCode Shr;
public static readonly System.Reflection.Emit.OpCode Shr;
staticval mutable Shr : System.Reflection.Emit.OpCode
Public Shared ReadOnly Shr As OpCode
Valor do campo
Comentários
A tabela a seguir lista o formato de assembly hexadecimal e da MSIL (Microsoft Intermediate Language) da instrução, juntamente com um resumo de referência breve:The following table lists the instruction's hexadecimal and Microsoft Intermediate Language (MSIL) assembly format, along with a brief reference summary:
| FormatarFormat | Formato do assemblyAssembly Format | DescriçãoDescription |
|---|---|---|
| 6363 | shrshr | Desloca um inteiro para a direita (deslocando-se no sinal).Shifts an integer to the right (shifting in sign). |
O comportamento de transição de pilha, em ordem sequencial, é:The stack transitional behavior, in sequential order, is:
Um valor é enviado por push para a pilha.A value is pushed onto the stack.
A quantidade de bits a ser deslocada é enviada por push para a pilha.The amount of bits to be shifted is pushed onto the stack.
O número de bits a ser deslocado e o valor são retirados da pilha; o valor é deslocado para a direita pelo número especificado de bits.The number of bits to be shifted and the value are popped from the stack; the value is shifted right by the specified number of bits.
O resultado é enviado para a pilha.The result is pushed onto the stack.
A shr.un instrução alterna o valor (tipo int32 int64 ou native int ) diretamente pelo número especificado de bits.The shr.un instruction shifts the value (type int32, int64 or native int) right by the specified number of bits. O número de bits é um valor do tipo int32 ou native int .The number of bits is a value of type int32 or native int. O valor de retorno não será especificado se o número de bits a serem deslocados for maior ou igual à largura (em bits) do valor fornecido.The return value is unspecified if the number of bits to be shifted is greater than or equal to the width (in bits) of the supplied value.
Shr Replica o bit de ordem superior em cada turno, preservando o sinal do valor original no result .Shr replicates the high order bit on each shift, preserving the sign of the original value in the result.
A sobrecarga do método a seguir Emit pode usar o shr opcode:The following Emit method overload can use the shr opcode: