OpCodes.Add_Ovf_Un 欄位
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
相加兩個不帶正負號的整數 (Unsigned Integer) 值、執行溢位檢查,並將結果推送至評估堆疊。
public: static initonly System::Reflection::Emit::OpCode Add_Ovf_Un;
public static readonly System.Reflection.Emit.OpCode Add_Ovf_Un;
staticval mutable Add_Ovf_Un : System.Reflection.Emit.OpCode
Public Shared ReadOnly Add_Ovf_Un As OpCode
欄位值
備註
下表列出指令的十六進位和 Microsoft 中繼語言 (MSIL) 元件格式,以及簡短的參考摘要:
| 格式 | 元件格式 | Description |
|---|---|---|
| D7 | add.ovf.un | 使用溢位檢查新增兩個不帶正負號的整數值。 |
堆疊轉換行為依循序順序為:
value1會推送至堆疊。value2會推送至堆疊。value2和value1會從堆疊快顯;value1會新增至value2,並檢查溢位。結果會推送至堆疊。
OverflowException 如果結果未在結果類型中表示,則會擲回 。
您可以在帶正負號的整數上執行這項作業。 針對浮點值,請使用 Add。
可接受的操作數類型及其對應的結果數據類型列在下表中。 例如, int32 如果 float特定類型組合沒有專案, (; int32 和 int64) ,則它是無效的 Microsoft 中繼語言 (MSIL) 指令,併產生錯誤。
| 操作 | value1 類型 | value2 類型 | 結果類型 |
|---|---|---|---|
| add | int32 |
int32 |
int32 |
| add | int32 |
native int |
native int |
| add | int32 |
& |
& |
| add | int32 |
* |
* |
| add | int64 |
int64 |
int64 |
| add | native int |
int32 |
native int |
| add | native int |
native int |
native int |
| add | native int |
& |
& |
| add | native int |
* |
* |
| add | F |
F |
F |
| add | & |
int32 |
& |
| add | & |
native int |
& |
| add | * |
int32 |
* |
| add | * |
native int |
* |
下列 Emit 方法多載可以使用 add.ovf.un opcode: