Store int
into local variable
Bytecode
Type | Description |
u1 | istore_0 opcode = 0x3C (59) |
u1 | istore_1 opcode = 0x3D (60) |
u1 | istore_2 opcode = 0x3E (61) |
u1 | istore_3 opcode = 0x3F (62) |
Description
Pops an int off the stack and stores it in local variable <n>, where <n> is 0, 1, 2 or 3. <n> must be a valid local variable number in the current frame.
The value on the top of the operand stack must be of type int
. It
is popped from the operand stack, and the value of the local variable at <n>
is set to value.
Each of the istore_<n> instructions is the same as istore with an index of <n>, except that the operand <n> is implicit.
Example
istore_0 ;store integer in local variable 0 istore_1 ;store integer in local variable 1 istore_2 ;store integer in local variable 2 istore_3 ;store integer in local variable 3