<< Home | About Forth | About TurboForth | Download | Language Reference | Resources | Tutorials | YouTube >>


2ROT Search:

In Programming and Stack Management Words in 32-bit library

Word Name: 2ROT
Type: Standard word
Data Stack Signature: d:x d:y d:z -- d:y d:z d:x
Return Stack Signature: --
Availability: V1.2
Description:

Rotates the top 3 double stack values to the left. 
 

Example:

1. 2. 3. 2ROT .DS

(displays 2 3 1)

Comment:

The bottom of the 3 values (prior to the instruction being executed) is placed at the top of the stack.

See Also: -ROT  ROT 

<< Home | About Forth | About TurboForth | Download | Language Reference | Resources | Tutorials | YouTube >>