iload_<0,1,2,3>

Load int from local variable

Bytecode

Type Description
u1 iload_0 opcode = 0x1A (26)
u1 iload_1 opcode = 0x1B (27)
u1 iload_2 opcode = 0x1C (28)
u1 iload_3 opcode = 0x1D (29)

Stack ... => ..., value

Description

The <n> must be a valid index into the local variables of the current frame. The local variable at <n> must contain an int. The value of the local variable at <n> is pushed onto the operand stack.

Each of the iload_<n> instructions is the same as iload with an index of <n>, except that the operand <n> is implicit.

Example

iload_0         ;push integer in local variable 0 onto the stack
iload_1         ;push integer in local variable 1 onto the stack
iload_2         ;push integer in local variable 2 onto the stack
iload_3         ;push integer in local variable 3 onto the stack