pfth is an ANS Forth compliant interpreter written in PASM and Forth. pfth was originally written in C, but the C version is no longer supported. The original post to this thread follows below. The latest version of pfth is attached to this post, and also in a post near the end of this thread.
pfth is an ANS Forth compliant interpreter written in C. It can be compiled to run on almost any platform that has a C compiler. I have run it under Cygwin on a PC and on a Prop C3 board using the XMMC model under PropGCC.
pfth currently implements 90 of the ANS Forth core words in the C kernel, and 43 core words in the Forth source file ansi.fth. The design goal for pfth is to allow easy porting of ANS Forth programs. When run on the Prop, pfth also supports a small number of words to read and write the OUTA and DIRA registers. More words will be added in the future to support other features of the Prop.
I also plan on moving more of the dictionary to a Forth source file so that the interpreter will be small enough to run in CMM or LMM mode. This will increase the number of Prop platforms that pfth can run on, and also increase the speed.
The Prop version of pfth is built and loaded using the SimpleIDE. The target platform must have a board configuration file so that the XMMC image can be loaded, and the SD driver can be initialized by the loader. This will change in future versions that will run using CMM or LMM mode.
The current version of pfth is attached below.