Mechanical Engineering Report 2013/08
Peter Jacobs1,
Pete Zawasky2 and
Mikael Nordman3
School of Mechanical and Mining Engineering
This report is a remix of material from a number Forth tutorials and references,
adapted to the FlashForth environment.
It provides some examples and explanation of using FlashForth on a PIC18 microcontroller
while concentrating on the features of the language rather than the details of the
microcontroller hardware.
Following an introduction to the FlashForth interpreter,
we look at adding our own word definitions to the dictionary and then explore
the manipulation of data values on the stack.
Flow of program control and more advanced defining words are also explored.
These defining words are convenient for making arrays.
Finally, strings and formatted numeric output are discussed.