Site Tools


Sidebar

Smart Card Solution

User Manual

JavaCard API Samples

Java Card Specification

Knowledge Sharing

javacard:jcvm:7.5.17_dup

7.5.17 dup

Duplicate top operand stack word

Format

dup

Forms

dup = 61 (0x3d)

Stack

…, word → …, word, word

Description

The top word on the operand stack is duplicated and pushed onto the operand stack.

The dup instruction must not be used unless word contains a 16-bit data type.

Notes

Except for restrictions preserving the integrity of 32-bit data types, the dup instruction operates on an untyped word, ignoring the type of data it contains.

javacard/jcvm/7.5.17_dup.txt · Last modified: 2017/05/13 04:09 (external edit)