The following table lists the instruction's hexadecimal and Microsoft Intermediate Language (MSIL) assembly format, along with a brief reference summary:
5A |
mul |
Multiplies two values on the stack. |
The stack transitional behavior, in sequential order, is:
[The 'ordered' type of list has not been implemented in the ECMA stylesheet.]The mul instruction multiplies value1 by value2 and pushes the result on the stack. Integer operations silently truncate the upper bits on overflow.
See OpCodes.Mul_Ovf for an integer-specific multiply operation with overflow handling.
For floating-point types, 0 * infinity = NaN.
The following ILGenerator.Emit(OpCode) method overload can use the mul opcode:
ILGenerator.Emit(OpCode)