constant  ( comp: n -- <name> | exec: -- n )

published: 11 January 2022 / updated 16 February 2022

Lire cette page en français

 

vocabulary: forth

Define a constant.

Example:

binary  \ masks are 32 bit length 
00000000000000000000000000000100 constant ledGREEN      \  green LED on G2 
00000000001000000000000000000000 constant ledYELLOW     \ yellow LED on G21 
00000000000000100000000000000000 constant ledRED        \    red LED on G17 
decimal 

Legal: site web personnel sans commerce / personal site without seling