55.

prev next contents
daload

retrieve double-precision float from array

Jasmin Syntax

     daload 
Stack

Before

After
index
value-word1
arrayref
value-word2
...
...
Description

Retrieves an entry from a double precision float array and places it on the stack. arrayref is a reference to an array of double-precision floating point numbers. index is an int. The arrayref and index are removed from the stack, and the two-word value at the given index in the array is pushed onto the stack.

Example

 ; This is like the Java code: ;     double x = arr[0]; ; where x is local variable 2 and arr is a double array in local variable 1 aload_1       ; load local variable 1 onto the stack iconst_0      ; push the integer 0 onto the stack daload        ; retrieve the entry dstore_2      ; store the entry in local variable 2 
Exceptions

NullPointerException - arrayref is null

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

Bytecode

Type

Description
u1
daload opcode = 0x31 (49)
See Also

iaload, faload, laload, 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).


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


Java Virtual Machine
Java Virtual Machine (Java Series)
ISBN: 1565921941
EAN: 2147483647
Year: 1996
Pages: 171

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net