1
DUP_U2
Nunuhara Cabbage edited this page 2019-11-05 18:09:35 -08:00

DUP_U2

Instruction Arguments

None

Stack Arguments

int32 value - The value to duplicate
int32 pad1 - Unused
int32 pad2 - Unused

Description

Duplicate the value second from the top of the stack.

Example

PUSH 0x1 ; stack: [1]
PUSH 0x2 ; stack: [1, 2]
DUP_U2   ; stack: [1, 2, 1]