Java Virtual Machine (Java Series)

prev next contents
fastore

store in single-precision float array

Jasmin Syntax

fastore Stack

Before

After
value ...
index
arrayref
...
Description

Takes a single-precision float from the stack and stores it in an array of floats. arrayref is a reference to an array of single-precision floats. index is an int. value is the single-precision float value to be stored in the array. arrayref, index and value are removed from the stack, and value is stored in the array at the given index.

Exceptions

NullPointerException - arrayref is null

ArrayIndexOutOfBoundsException - index is < 0 or >= arrayref.length

Bytecode

Type

Description
u1 fastore opcode = 0x51 (81)
See Also

iastore, lastore, dastore, aastore, bastore, castore, sastore iaload, laload, faload, daload, aaload, baload, caload, saload

Notes

Array indices start at 0 (the first entry in the array is at index 0).


prev next contents
Java Virtual Machine, by Jon Meyer and Troy Downing, O'Reilly Associates

Категории