13.07.2015 Views

The PowerPC 604 RISC Microprocessor - eisber.net

The PowerPC 604 RISC Microprocessor - eisber.net

The PowerPC 604 RISC Microprocessor - eisber.net

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

PastoreStore into single float arraySyntaxLplume = 81 1Stack arrayref, index, value =>arrayref must be an array of single-precision floating point numbers, index must be an integer, andvalue a single-precision floating point number. <strong>The</strong> single float value is stored at position index in thearrayIf arrayref is null, a NullPointerExcept ion is thrown. If index is not within the bounds of thearray an Ar raylndexOutOf BoundsExcept ion is thrown.bastoreStore into signed byte arraySyntaxI. lnmmt = 84Stack: arrayref, index, value ‘,> .arrayref must be a reference to an array of signed bytes, index must be an integer, and value an integer<strong>The</strong> integer value is stored at position index in the array. If value is too large to be a signed byte, it istruncated.If arrayref is nu 11, a No 1 1 Poi rater Except i on is thrown. If index is not within the bounds of thearray an Ar rayIndexOutOf BoundsExcept ion is thrown.dastoreaastoreStore into double float arraySyntax:dusrnrt = 82 1Stack. ...,arrayref, index , value-tvordl, value-toord2 =>arras/ref must be a reference to an array of double-precision floating point numbers, index must be aninteger, and value a double-precision floating point number. <strong>The</strong> double float value is stored at positionindex in the array.If am-owl is nu 1 1, a Null Poi nt erExcept ion is thrown. If index is not within the bounds of thearray an Ar rayl ndexOutOf BoundsExcept ion is thrown.Store into object reference arraySyntax:Irrovore = 83 IStack: arrayref, index, value =>arrayref must be a reference to an array of references to objects, index must be an integer, and value areference to an object. <strong>The</strong> object reference value is stored at position index in the array.If arrayref is nu 1 1, a Nu 1 1 Poi nter Except ion is thrown. If index is not within the bounds of thearray, an Ar rayIndexOutOf BoundsExcept ion is thrown.<strong>The</strong> actual type of valise must be conformable with the actual type of the elements of the array. Forexample, it is legal to store an instance of class Thread in an array of class Object, but not viceversa. (See the Java language Specification for information on how to determine whether a objectreference is an instance of a class.) An Ar rayStoreExcept ion is thrown if an attempt is made tostore an incompatible object referenceNote: Mustn't refer to the Java language Specification; give semantics here.cast oresastoreStore into character arraySyntax:(white' 85Stack: ..., arrayref, index, value =>arrayref must be an array of characters, index must be an integer, and value an integer. <strong>The</strong> integer valueis stored at position index in the array. If value is too large to be a character, it is truncated.If arrayref is null, a NullPointerExcept ion is thrown. If index is not within the bounds of (thearray an Ar ray! ridexOutOf BoundsExcept ion is thrownStore into short arraySyntax:vinare = 86Stack: ..., array, index, value =>Iarrayref must be an array of shorts, index must be an integer, and value an integer. <strong>The</strong> integer onli n e isstored at position index in the array. If valise is too large to he no short, it is truncated.If arrayref is nu 11, a Nu 11 Poi nte rExcept ion is thrown If index is not within the bounds ofarray an Ar rayInclexoutOf BoundsExcept ion is thrown.3.7 Stack Instructions!sop1)o nothingSyntax.nndr = 0Stack: no changeDo nothing.August 22. 1995 lava Virtual Machine Specification 41 42 lava VlatlAl Machine SiwilicAtton August 22 VW.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!