Operation
Duplicate the top one or two operand stack values
Format
dup2
Forms
dup2 = 92 (0x5c)
Operand Stack
Form 1:
..., value2, value1 →
..., value2, value1, value2, value1
where both value1 and value2 are values of a category 1 computational type (§2.11.1).
Form 2:
..., value →
..., value, value
where value is a value of a category 2 computational type (§2.11.1).
Description
Duplicate the top one or two values on the operand stack and push the duplicated value or values back onto the operand stack in the original order.