<< Home | About Forth | About TurboForth | Download | Language Reference | Resources | Tutorials | YouTube >>
In Compilation Words in TurboForth Kernal
Creates a variable using the name immediately following in the terminal input buffer.
VARIABLE DELAY 100 DELAY ! (stores 100 in the variable DELAY) DELAY @ . (fetches the variables value and displays it (displays 100))
VARIABLE DELAY 100 DELAY !
DELAY @ .
Variables are read and set with @ and !.
@
!
VARIABLEs should not be defined within a colon definition.
VARIABLE