fl-  ( -- )

published: 29 January 2023 / updated 29 January 2023

Lire cette page en français

 

vocabulary: forth

Disables writes to Flash memory, EEPROM.

The use of this word in a definition prevents accidental writing in FLASH memory, therefore, a possible crash of the FORTH dictionary.

A crash of the FORTH dictionary requires the complete reinstallation of the FORTH language.

Example:

\ main loop 
: buttons.loop 
    fl- \ Disable writes to flash and eeprom 
    begin 
       \ ... rest of definition  
    key? until 
    fl+ \ Enable writes to flash and eeprom 
  ;