OpCodes.Br_S 字段


无条件地将控制转移到目标指令(短格式)。Unconditionally transfers control to a target instruction (short form).

public: static initonly System::Reflection::Emit::OpCode Br_S;
public static readonly System.Reflection.Emit.OpCode Br_S;
 staticval mutable Br_S : System.Reflection.Emit.OpCode
Public Shared ReadOnly Br_S 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
2B < int8 >2B < int8 > br targetbr.s target 按指定的偏移量(短格式)分支到目标指令。Branches to a target instruction at the specified offset, short form.

此操作不会执行任何计算堆栈行为。No evaluation stack behaviors are performed by this operation.

@No__t-0 指令无条件地将控制转移到目标指令。The br.s instruction unconditionally transfers control to a target instruction. 目标指令表示为与当前指令后面的指令开头之间的1字节有符号偏移量。The target instruction is represented as a 1-byte signed offset from the beginning of the instruction following the current instruction.

如果目标指令具有一个或多个前缀代码,则只能将控制转移到其中的第一个前缀。If the target instruction has one or more prefix codes, control can only be transferred to the first of these prefixes. 控制传入和传出 trycatchfilterfinally 块无法通过此说明执行。Control transfers into and out of try, catch, filter, and finally blocks cannot be performed by this instruction.

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

  • ILGenerator (操作码、标签)ILGenerator.Emit(OpCode, Label)