v2.2.1: DO .. LOOP extension
STM8EF v2.2.1 adds DO ( n n --), LEAVE ( -- ), LOOP ( -- ), and +LOOP ( +n -- )
The new words should work like specified in ANS Forth.
Example:
: test DO R@ DUP . 3 = IF LEAVE THEN 2 +LOOP ; ok
10 -9 test -9 -7 -5 -3 -1 1 3 ok
10 2 test 2 4 6 8 ok