Site Tools


Sidebar

Smart Card Solution

User Manual

JavaCard API Samples

Java Card Specification

Knowledge Sharing

javacard:jcvm:7.5.9_astore

7.5.9 astore

Store reference into local variable

Format

astore

index

Forms

astore = 40 (0x28)

Stack

…, objectref → …

Description

The index is an unsigned byte that must be a valid index into the local variables of the current frame ( Section 3.5, Frames). The objectref on the top of the operand stack must be of type returnAddress or of type reference. The objectref is popped from the operand stack, and the value of the local variable at index is set to objectref.

Notes

The astore instruction is used with an objectref of type returnAddress when implementing Java's finally keyword. The aload instruction cannot be used to load a value of type returnAddress from a local variable onto the operand stack. This asymmetry with the astore instruction is intentional.

javacard/jcvm/7.5.9_astore.txt · Last modified: 2017/05/13 04:11 (external edit)