Next: Arithmetic Instructions
Up: The Instruction Set
Previous: Load Instructions
The store instructions store a value from the operand stack in a variable.
The following instructions store a value in a local variable:
- istore, fstore, lstore, dstore, astore.
Store a value of respectively type int, float,
long, double and reference on the operand stack into a local
variable. Operand: index. Stack: ..., value
....
- istore_
n>, fstore_
n>, lstore_
n>,
dstore_
n>, astore_
n>.
Store a value of respectively type int, float,
long, double and reference on the operand stack into a local
variable at index <n> where <n> = (0..3). No operands.
Stack: ..., value
....
mark@bottom.xs4all.nl