1
DUP
Nunuhara Cabbage edited this page 2019-11-05 17:26:45 -08:00

DUP

Instruction Arguments

None.

Stack Arguments

int32 value - The value to duplicate

Description

Duplicate the value at the top of the stack.

Example

PUSH 0x1 ; stack: [1]
DUP      ; stack: [1, 1]
ADD      ; stack: [2]