OpCodes.Or 字段


计算位于堆栈顶部的两个整数值的按位求补并将结果推送到计算堆栈上。Compute the bitwise complement of the two integer values on top of the stack and pushes the result onto the evaluation stack.

public: static initonly System::Reflection::Emit::OpCode Or;
public static readonly System.Reflection.Emit.OpCode Or;
 staticval mutable Or : System.Reflection.Emit.OpCode
Public Shared ReadOnly Or As OpCode 



下表列出了指令的十六进制和 Microsoft 中间语言(MSIL)程序集格式以及简短的参考摘要:The following table lists the instruction's hexadecimal and Microsoft Intermediate Language (MSIL) assembly format, along with a brief reference summary:

格式Format 程序集格式Assembly Format 说明Description
6060 oror 计算两个整数值的按位 "或",返回整数。Computes the bitwise OR of two integer values, returns an integer.

堆栈转换行为顺序如下:The stack transitional behavior, in sequential order, is:

  1. value1 推送到堆栈上。value1 is pushed onto the stack.

  2. value2 推送到堆栈上。value2 is pushed onto the stack.

  3. value2 和 @no__t 从堆栈中弹出,并按位或计算。value2 and value1 are popped from the stack and their bitwise OR computed.

  4. 将结果推送到堆栈上。The result is pushed onto the stack.

@No__t-0 指令计算堆栈顶部的两个值的按位 "或",并将结果推送到堆栈上。The or instruction computes the bitwise OR of two values atop the stack, pushing the result onto the stack.

Or 是特定于整数的操作。Or is an integer-specific operation.

以下 @no__t 0 方法重载可以使用 @no__t 操作码:The following Emit method overload can use the or opcode:

  • ILGenerator.Emit(OpCode)ILGenerator.Emit(OpCode)