Forum Discussion
Altera_Forum
Honored Contributor
19 years agoForth and NIOS II
Attached is an implementation of FIG Forth for the NIOS II. There ANSI and personal changes/extensions. It is in NIOS II assembly and Forth with a load module size of about 13K Bytes. This version...
Altera_Forum
Honored Contributor
19 years agoThis is an update to the original Forth I posted, .S files only. Errors found and corrected along with additions. The BEGIN-WHILE-REPEAT had an error, several others also. Added S" (almost ANSI) and made CREATE operate per ANSI. String constants now kept in entered case. There is an example of how to redirect the terminal input and output to compile from Forth sorce in memory, flash, etc (SLOAD/LOAD/FLSHKEY in fig6). I use it to load 70KB of Forth source code (includes comments & white space, the DOS files) to the vocabulary. Diagnostic and test code written several years ago have ported very quickly to this environment.