aforth

FORTH for Linux x86-64, written in assembly.
git clone git://henryandlizzy.uk/aforth
Log | Files | Refs | README

README.md (475B)


      1 # aforth
      2 
      3 A FORTH written in assembly language for Linux x64
      4 
      5 Compiles with GNU Assembler
      6 
      7 Written by Henry Wilson
      8 
      9 
     10 The process can be run by typing 'make interactive'
     11 
     12 Try entering some of the following:
     13 
     14 10 20 + .
     15 
     16 : STARS 0 DO 42 EMIT LOOP ;
     17 6 STARS
     18 
     19 : TRIANGLE 1+ 1 DO I> STARS CR LOOP ;
     20 4 TRIANGLE
     21 
     22 : TRIANGLE DUP IF DUP STARS CR 1- RECURSE ELSE DROP THEN ;
     23 5 TRIANGLE
     24 
     25 FORGET TRIANGLE
     26 5 TRIANGLE
     27 
     28 ![alt text](https://github.com/M3Henry/aforth/blob/master/example.png)