|
ldc_i4 | ||||
· Operation | Load int32 constant onto the stack | |||
· Format |
| |||
· Direct Format |
| |||
· Forms | ldc_i4 = 157 (0x9D) | |||
· Stack | ... => ..., value | |||
· Description | The 32-bit value n
is pushed onto the stack as type int32 . | |||
· Notes | This instruction can also be used to load constants
of type uint32 onto the stack. |
ldc_i4_<n> | |||
· Operation | Load n onto the stack | ||
· Format |
| ||
· Direct Format |
| ||
· Forms | ldc_i4_m1 = 146 (0x92) ldc_i4_0 = 147 (0x93) ldc_i4_1 = 148 (0x94) ldc_i4_2 = 149 (0x95) ldc_i4_3 = 150 (0x96) ldc_i4_4 = 151 (0x97) ldc_i4_5 = 152 (0x98) ldc_i4_6 = 153 (0x99) ldc_i4_7 = 154 (0x9A) ldc_i4_8 = 155 (0x9B) | ||
· Stack | ... => ..., value | ||
· Description | The value n is pushed onto
the stack as type int32 . | ||
· Notes | These instructions can also be used to load constants
of type uint32 onto the stack. |
ldc_i4_s | ||||
· Operation | Load small int32 constant
onto the stack | |||
· Format |
| |||
· Direct Format |
| |||
· Forms | ldc_i4_s = 156 (0x9C) | |||
· Stack | ... => ..., value | |||
· Description | The signed 8-bit value n
is pushed onto the stack as type int32 . | |||
· Notes | This instruction can also be used to load constants
of type uint32 onto the stack. |
ldc_i8 | ||||
· Operation | Load int64 constant onto the stack | |||
· Format |
| |||
· Direct Format |
| |||
· Forms | ldc_i8 = 158 (0x9E) | |||
· Stack | ... => ..., value | |||
· Description | The 64-bit value n
is pushed onto the stack as type int64 . | |||
· Notes | This instruction can also be used to load constants
of type uint64 onto the stack. |
ldc_r4 | ||||
· Operation | Load 32-bit floating point constant onto the stack | |||
· Format |
| |||
· Direct Format |
| |||
· Forms | ldc_r4 = 159 (0x9F) | |||
· Stack | ... => ..., value | |||
· Description | The 32-bit floating point value n is fetched,
converted to native float , and then pushed onto the
stack as value. |
ldc_r8 | ||||
· Operation | Load 64-bit floating point constant onto the stack | |||
· Format |
| |||
· Direct Format |
| |||
· Forms | ldc_r8 = 160 (0xA0) | |||
· Stack | ... => ..., value | |||
· Description | The 64-bit floating point value n is fetched,
converted to native float , and then pushed onto the
stack as value. |
ldnull | |||
· Operation | Load null onto the stack | ||
· Format |
| ||
· Direct Format |
| ||
· Forms | ldnull = 145 (0x91) | ||
· Stack | ... => ..., value | ||
· Description | The value null is pushed onto
the stack as type ptr . | ||
· Notes | This instruction must not be confused with ldc_i4_0.
Values of type int32 and ptr do not
necessarily occupy the same amount of space in a stack word on
all platforms. |
ldstr | ||||
· Operation | Load a string constant onto the stack | |||
· Format |
| |||
· Direct Format |
| |||
· Forms | ldstr = 233 (0xE9) | |||
· Stack | ... => ..., string | |||
· Description | Loads the string token from the current method's image and pushes the corresponding string object onto the stack. | |||
· Exceptions | System.OutOfMemoryException -- Raised if
there is insufficient memory to allocate the string. |
Copyright © Southern
Storm Software Pty Ltd 2002
Licensed under GNU FDL