faloadStack
Before | After |
index | value |
arrayref | ... |
... |
Retrieves an entry from a float array and places it on the stack. arrayref is a reference to an array of single-precision floats. index is an int. The arrayref and index are removed from the stack, and the single-precision float entry at the given index in the array is pushed onto the stack.
Example
; This is like the Java code: ; float x = arr[0]; ; where x is local variable 2 and arr is a float ; array in local variable 1 aload_1 ; load local variable 1 onto the stack iconst_0 ; push the integer 0 onto the stack faload ; retrieve the entry fstore_2 ; store the entry in local variable 2Exceptions
NullPointerException - arrayref is null
ArrayIndexOutOfBoundsException - index is < 0 or >= arrayref.length
Bytecode Type
See Also Description u1 faload opcode = 0x30 (48)
iaload, laload, daload, aaload, baload, caload, saload, iastore, lastore, fastore, dastore, aastore, bastore, castore, sastore
Notes
Array indices start at 0 (the first entry in the array is at index 0).