Product SiteDocumentation Site

Temporary Stack

>t

Synopsis

>t ( x1 -- ) temp: ( -- x1 )

Description

Move TOS to the temporary stack.

Example

> 1 >t
stack (0) temp (1) 1

>s

Synopsis

>s ( -- x1 ) temp: ( x1 -- )

Description

Move the TOS from the temporary stack onto the main stack.

Example

> 1 >t
stack (0) temp (1) 1
> >s
stack (1) 1 temp (0)

>t#

Synopsis

>t# ( ... i -- ) temp: ( -- ... )

Desciption

Move i items to the temporary stack.

Example

> 1 2 3 3 >t#
stack (0) temp (3) 3 2 1

>s#

Synopsis

>s# ( i -- ... ) temp: ( ... -- )

Description

Move i items from the temporary stack onto the main stack.

Example

> 1 2 3 3 >t#
stack (0) temp (3) 3 2 1
> 3 >s#
stack (3) 1 2 3 temp (0)