Contents | Prev | Next | Index

dup

Operation
Duplicate top operand stack word

dup

Forms
dup = 89 (0x59)

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 32-bit data type.

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


Contents | Prev | Next | Index

Java Virtual Machine Specification (HTML generated by dkramer on February 25, 1997)
Copyright © 1996 Sun Microsystems, Inc. All rights reserved
Please send any comments or corrections to doug.kramer@sun.com