Add new restoreOperation
Actually, the DUP
and DUP2
should just places back the first value intact on the stack. They shouldn't copy the first value, they should just restore the first value. That's why I added new operation called restoreOperation
which restores stack value without altering its position. In this way we can actually detect which value was copied and which was just restored.