Site Tools


Sidebar

Smart Card Solution

User Manual

JavaCard API Samples

Java Card Specification

Knowledge Sharing

javacard:jcvm:7.5.45_iinc

7.5.45 iinc

Increment local int variable by constant

Format

iinc

index

const

Forms

iinc = 90 (0x5a)

Stack

No change

Description

The index is an unsigned byte. Both index and index + 1 must be valid indices into the local variables of the current frame ( Section 3.5, Frames). The local variables at index and index + 1 together must contain an int. The const is an immediate signed byte. The value const is first sign-extended to an int, then the int contained in the local variables at index and index + 1 is incremented by that amount.

Notes

If a virtual machine does not support the int data type, the iinc instruction will not be available.

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