triton-vm icon indicating copy to clipboard operation
triton-vm copied to clipboard

Introduce instructions `pick` + `i` and `place` + `i`

Open jan-ferdinand opened this issue 8 months ago • 0 comments

The two new instructions simplify manipulation of the operational stack. Instruction pick + i moves the indicated stack element to the top of the stack. Instruction place + i is its dual, moving the top of the stack to the indicated position.

old op stack new op stack
pick + i e.g., _ d x c b a e.g., _ d c b a x
place + i e.g., _ d c b a x e.g., _ d x c b a

jan-ferdinand avatar May 30 '24 12:05 jan-ferdinand