minimal

Minimal Forth Workbench provides an educational subset of Standard Forth, feel free to experiment.



\ Minimal Forth Workbench: arithmetic words                            uh 2015-10-15

: 0< ( n -- f ) 0 < ;
: 1+ ( x1 -- x2 ) 1 + ;
: 2+ ( x1 -- x2 ) 2 + ;
: 1- ( x1 -- x1 ) 1 - ;

: MIN ( n1 n2 -- n3 )  OVER OVER > IF SWAP THEN DROP ;
: MAX ( n1 n2 -- n3 )  OVER OVER < IF SWAP THEN DROP ;

by UlrichHoffmann

avatar of UlrichHoffmann

Versions

1.1.1, 1.1.0, 1.0.0

Download current as zip

Tags

ansforth94, forth-94, forth-2012

Dependencies

None

Dependents

None