Dup#

Duplicate a stack item by putting it on top of the stack.

def _dup(evm, n):
    # make sure stack is big enough!
    value = evm.stack[n]
    evm.stack.push(value)

    evm.pc += 1
    evm.gas_dec(3)