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


2VARIABLE Search:

In Programming and Stack Management Words in 32-bit library

Word Name: 2VARIABLE
Type: Standard word
Data Stack Signature: – address
Return Stack Signature: --
Availability: V1.2
Description:

Defines and reserves space for a double-precision (32-bit) variable.

Example:

2VARIABLE AMOUNT

The above reserves 2 cells (32 bits) of memory. When AMOUNT is referenced, the numerically lower address of the two-cell address is returned. This address points to the low 16-bits of the 32-bit value.

Comment:

Used in conjunction with 2! and 2@.

 

See Also: VARIABLE 

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