]  ( -- )

published: 29 January 2023 / updated 29 January 2023

Lire cette page en français

 

vocabulary: forth

Return to compilation. ] is an immediate word.

With FlashForth, the words [ and ] allow you to use assembly code, subject to first compiling an assembler.

Example:

\ Load constant $1234 to top of stack   
: a-number ( -- 1234 ) 
    dup                  \ Make space for new TOS value 
    [ R24 $34 ldi, ] 
    [ R25 $12 ldi, ] 
;