Subtracts one unsigned integer value from another, performs an overflow check, and pushes the result onto the evaluation stack.
The following table lists the instruction's hexadecimal and Microsoft Intermediate Language (MSIL) assembly format, along with a brief reference summary:
DB |
sub.ovf.un |
Subtracts one unsigned integer value from another with an overflow check. |
The stack transitional behavior, in sequential order, is:
[The 'ordered' type of list has not been implemented in the ECMA stylesheet.]OverflowException is thrown if the result can not be represented in the result type.
This operation is performed on signed integers; for floating-point values, use OpCodes.Sub.
The following ILGenerator.Emit(OpCode) method overload can use the sub.ovf.un opcode:
ILGenerator.Emit(OpCode)