toka.nbk: Home | Index | Next Page: strings | Previous Page: Stack Comments


 stack.c

Use

Implements the basic stack operations. This is intentionally kept minimal, though additional primitives can be added to improve overall performance.

Functions Provided

stack_dup()
Duplicate the TOS

stack_drop()
Drop the TOS

stack_swap()
Exchange TOS and NOS

stack_to_r()
Push TOS to return stack, DROP TOS

stack_from_r()
Pop TORS to the data stack

stack_depth()
Return the number of items on the stack

Primitives Provided

dup
drop
swap
>r
r>
depth

toka.nbk: Home | Index | Next Page: strings | Previous Page: Stack Comments


Notebook exported on Sunday, 1 July 2007, 19:54:43 PM EDT