| 335 | | ======= ================= ================= |
| 336 | | Word Stack Usage Function |
| 337 | | ======= ================= ================= |
| 338 | | . (val -- ) Remove value on top of stack and print it. |
| 339 | | .s () Show values on stack. |
| 340 | | dup (a -- a a) Duplicate value on top of stack. |
| 341 | | dup2 (a b -- a b a b) Duplicate top 2 values. |
| 342 | | drop (a -- ) Remove value on top of stack. |
| 343 | | swap (a b -- b a) Switch the two values on the top of stack. |
| 344 | | over (a b -- a b a) Copy second item on stack to the top of the stack. |
| 345 | | nip (a b -- b) Remove second value on stack. |
| 346 | | tuck (a b -- b a b) Copy top value under second value. |
| 347 | | rot (a b c -- b c a) Rotate third value to top. |
| 348 | | rot.r (a b c -- c a b) Rotate top of stack to third position. |
| 349 | | ======= ================= ================= |
| | 335 | =========== ================= ============================ |
| | 336 | Word Stack Usage Function |
| | 337 | =========== ================= ============================ |
| | 338 | . (val -- ) Remove value on top of stack and print it. |
| | 339 | .s () Show values on stack. |
| | 340 | dup (a -- a a) Duplicate value on top of stack. |
| | 341 | dup2 (a b -- a b a b) Duplicate top 2 values. |
| | 342 | drop (a -- ) Remove value on top of stack. |
| | 343 | swap (a b -- b a) Switch the two values on the top of stack. |
| | 344 | over (a b -- a b a) Copy second item on stack to the top. |
| | 345 | nip (a b -- b) Remove second value on stack. |
| | 346 | tuck (a b -- b a b) Copy top value under second value. |
| | 347 | rot (a b c -- b c a) Rotate third value to top. |
| | 348 | rot.r (a b c -- c a b) Rotate top of stack to third position. |
| | 349 | stack.level ( -- level) Returns depth of data stack. |
| | 350 | =========== ================= ============================ |