FORTH is a high-level computer language developed by Charles H. Moore in the last sixties. It was interpretive in the beginning but compiler versions are currently available among which is listed the one we are reviewing now. The basic unit in FORTH is the word, the language is usually provided with a certain number of words, each one of which defines a given function or routine and the user can add to this vocabulary with other words which he designs. Because of the compiler nature of these versions of the language, it runs very fast as compared to BASIC. Speed is not the only advantage to the user since long BASIC programs involving complicated subroutines have to be defined only once and then a short string of FORTH words can replace what would be many lines of BASIC Program
Last year I bought the IPS version of compiler FORTH which is supplied as software in a cassette and takes about 7K of memory. When the Tree Systems version which is supplied as an 8K EPROM chip to replace the BASIC ROM became available, I decided to buy it in order to compare them,
One of the first conclusions I drew is that although both versions are roughly comparable in memory size, capabilities, speed and number of basic words provided, the Tree Systems Chip has some advantages such as the extra memory available to the user. If you have a 16K RAM pack attached to your ZX81, the IPS FORTH leaves you about 9K of free RAM while the Tree Systems chip takes less than 2K for its internal use and leaves you over 14K for your programs. Other advantages are that the Tree Systems chip has a built-in editor with split screen, it has auto-repeat on all keys, it is capable of multi-tasking (ie. up to ten programs can be scheduled to run at some time in the future, for example, take temperature readings every 20 minutes, etc.), it has standard ASCII characters which are displayed on the screen and last but not least, the convenience of the chip itself which requires no loading and provides instant availability on power-up. The 2764 EPROM chip containing FORTH comes soldered to a small board to which the BASIC ROM can also be attached so as to enable the user to switch at will between BASIC and FORTH.
One serious drawback common to both versions currently available for the ZX81 is the inability to obtain printouts, the results ere just displayed on the screen, Also the claims by Tree Systems that their version of FORTH runs up to 130 times faster than BASIC is wildly exaggerated and misleading. I tried the following standard test in both BASIC and FORTH:
BASIC
10 FOR A=1 TO 3000
20 SCROLL
30 PRINT A
40 NEXT A
FORTH
3000 1 DO CR 1 . LOOP
In both FAST and SLOW modes FORTH was between 5 and 7 times faster than BASIC which is a significant advantage but nothing even close to the above claim.
The FORTH chip plus board comes with a 110 page manual which although full of irritating spelling errors, is well written and to the best of our knowledge, quite error-free, a refreshing change from IPS’s notoriously defective manual.
I must warn potential users that the Tree Systems version of FORTH requires at least 2K of RAM and also that the power supply used will have to provide more than 500 mA. The BASIC computer plus 16K RAM which we used for the test worked well with such a power supply but with the FORTH chip plugged in the same system was useless due to screen instability. A 650 mA power supply solved the problem. Finally, you must remember to turn off the computer before attempting to switch from one ROM to the other.
Summing up, If you want to do serious programming in FORTH, the Tree Systems version is good value for your money unless you wish to wait to see If a chip becomes available in the future to provide access to the ZX Printer and perhaps more fig-FORTH commands. On the other hand, If you only want to see what FORTH Is like and just try it out, then the IPS software version (ZX FORTH) should suffice.
The FORTH EPROM chip plus board and manual is available from Tree Systems of Grand Rapids, Michigan, USA for US$ 49.95.