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


Words in category Programming and Stack Management Words in glossary 32-bit library

Search:
The following words are listed in this category (12 words found): Word Types: S = Standard, I = Immediate , IC = Immediate-compiling.
Word Name Word Type Data Stack Signature Return Stack Signature Description Availability
V1.0 V1.1 V1.2
2! S d:x addr – -- Stores a double-precision value into a variable previously declared with 2VARIABLE.
2, S d:x – -- Compiles a double-precision value on the stack directly to memory (at the address pointed to by HERE) as two consecutive cells.
2@ S address – d:x -- 2@ returns a double-precision value previously stored in a double-precision variable with 2!.
2CONSTANT S – value -- Declares and stores a double-precision constant value (a value that does not change).
2LITERAL I d:x – -- Pushes an in-line 32-bit value on the data stack at runtile.
2NIP S d:x d:y -- d:y -- Removes the double value x from the stack, moving y down on the stack to take its place.
 
2OVER S d:x d:y -- d:x d:y d:x -- Places a copy of the double value x (which is underneath y) at the top of the stack.
2ROT S d:x d:y d:z -- d:y d:z d:x -- Rotates the top 3 double stack values to the left. 
 
-2ROT S d:x d:y d:z -- d:z d:x d:y -- Rotates the top 3 double values on the stack to the right.
2SWAP S d:x d:y -- d:y d:x -- Swaps the double values x and y on the stack.
2VARIABLE S – address -- Defines and reserves space for a double-precision (32-bit) variable.
S>D S s:x -- d:x -- Converts a signed single value on the stack to a signed double value, by adding a 0 in the high order cell (for positive values) or a -1 for negative values.

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