Stores a value of type int16 at a supplied address.
[Visual Basic] Public Shared ReadOnly Stind_I2 As OpCode [C#] public static readonly OpCode Stind_I2; [C++] public: static OpCode Stind_I2; [JScript] public static var Stind_I2 : OpCode;
The following table lists the instruction's hexadecimal and Microsoft Intermediate Language (MSIL) assembly format, along with a brief reference summary:
|53||stind.i2||Stores an int16 value at at a given address.|
The stack transitional behavior, in sequential order, is:
- An address is pushed onto the stack.
- A value is pushed onto the stack.
- The value and the address are popped from the stack; the value is stored at the address.
The stind.i2 instruction stores an int16 value at the supplied address (type natural int, *, or &).
Type safe operation requires that the stind.2i instruction be used in a manner consistent with the type of the pointer. The operation of the stind.i2 instruction can be altered by an immediately preceding Volatile or Unaligned prefix instruction.
NullReferenceException is thrown if addr is not naturally aligned for the argument type implied by the instruction suffix.
The following Emit constructor overload can use the stind.i2 opcode:
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family