minimal

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



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

: VALUE ( -- )  CREATE , DOES> @ ;

\ TO is a state smart compiling word

: DEFER ( "<Spaces>Name" -- )  CREATE 0 , DOES> @ EXECUTE ;

primitive ALLOT
primitive HERE

\ : Array ( n -- )  CREATE CELLS ALLOT DOES> ( i -- x ) CELLS + ;
\ : Field ( u1 u2 -- u3 )  CREATE  OVER , + DOES> ( addr -- ) @  + ;

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