Site Tools


Sidebar

Smart Card Solution

User Manual

JavaCard API Samples

Java Card Specification

Knowledge Sharing

javacard:jcvm:7.5.91_sipush

7.5.91 sipush

Push short

Format

sipush

byte1

byte2

Forms

sipush = 19 (0x13)

Stack

… → …, value1.word1, value1.word2

Description

The immediate unsigned byte1 and byte2 values are assembled into a signed short where the value of the short is (byte1 « 8) | byte2. The intermediate value is then sign-extended to an int, and the resulting value is pushed onto the operand stack.

Notes

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

javacard/jcvm/7.5.91_sipush.txt · Last modified: 2017/05/13 04:10 (external edit)