-
Notifications
You must be signed in to change notification settings - Fork 93
Common Instructions
These instructions are registered for all types except auxiliary and tag.
name | use | input | output |
---|---|---|---|
popper |
pop the first item of the appropriate stack |
|
|
duper |
duplicate the first item of the appropriate stack |
|
|
swapper |
swap the first two items of the appropriate stack |
|
|
rotter |
rotate the first 3 items of the appropriate stack (1-2-3 to 3-1-2) |
|
|
flusher |
empty a given stack |
|
|
eqer |
compare the first two items of a stack |
|
|
stackdepther |
get the depth of a stack |
|
|
yank |
yank one item to the top of a stack. The index is taken from the |
|
|
yankdupe |
similar to yank, but it copies to the top |
|
|
shove |
shoves an item down into a stack. The top item on the specified stack will be placed in slot i, where i is taken from the |
|
|
Initial state |
yank instruction |
Subsequent state |
---|---|---|
|
string_yank |
|
|
integer_yank |
|
|
string_yank |
|
|
integer_yank |
|