OpCodes.Rem_Un 字段
定义
将两个无符号值相除并将余数推送到计算堆栈上。Divides two unsigned values and pushes the remainder onto the evaluation stack.
public: static initonly System::Reflection::Emit::OpCode Rem_Un;
public static readonly System.Reflection.Emit.OpCode Rem_Un;
staticval mutable Rem_Un : System.Reflection.Emit.OpCode
Public Shared ReadOnly Rem_Un 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 |
|---|---|---|
| 5E5E | remrem.un | 将未签名的的剩余部分推送 value1 value2 到堆栈上。Pushes the remainder of dividing unsigned value1 by unsigned value2 onto the stack. |
堆栈转换行为顺序如下:The stack transitional behavior, in sequential order, is:
value1被推送到堆栈上。value1is pushed onto the stack.value2被推送到堆栈上。value2is pushed onto the stack.value2和value1将从堆栈中弹出和计算的其余部分value1divvalue2。value2andvalue1are popped from the stack and the remainder ofvalue1divvalue2computed.将结果推送到堆栈上。The result is pushed onto the stack.
result = value1``rem.un value2 满足下列条件:result = value1 rem.un value2 satisfies the following conditions:
result = value1 - value2 x (value1 div.un value2) 和:result = value1 - value2 x(value1 div.un value2), and:
0 = result < value2 ,其中 div.un 是无符号除法指令。0 = result < value2, where div.un is the unsigned division instruction.
rem.un指令计算 result 并将其推送到堆栈上。The rem.un instruction computes result and pushes it on the stack. Rem.un 将其参数视为无符号整数,同时将 Rem 它们视为有符号整数。Rem.un treats its arguments as unsigned integers, while Rem treats them as signed integers.
Rem.un 对于浮点数未指定。Rem.un is unspecified for floating-point numbers.
DivideByZeroException如果为零,则引发整数运算 value2 。Integral operations throw DivideByZeroException if value2 is zero.
以下 Emit 方法重载可以使用 rem.un 操作码:The following Emit method overload can use the rem.un opcode: