OpCodes.Sub_Ovf_Un 字段

定义

从另一值中减去一个无符号整数值,执行溢出检查,并且将结果推送到计算堆栈上。Subtracts one unsigned integer value from another, performs an overflow check, and pushes the result onto the evaluation stack.

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

字段值

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
DBDB ovfsub.ovf.un 使用溢出检查从一个无符号整数值减去另一个无符号整数值。Subtracts one unsigned integer value from another with an overflow check.

堆栈转换行为顺序如下: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. value2value1 将从堆栈中弹出; value2 从中减去并 value1 检查溢出。value2 and value1 are popped from the stack; value2 is subtracted from value1 with a check for overflow.

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

OverflowException 如果结果不能用结果类型表示,则会引发。OverflowException is thrown if the result can not be represented in the result type.

此操作在有符号整数上执行;对于浮点值,请使用 SubThis operation is performed on signed integers; for floating-point values, use Sub.

以下 Emit 方法重载可以使用 sub.ovf.un 操作码:The following Emit method overload can use the sub.ovf.un opcode:

适用于