There is now an example project in git that implements
a simple word in C and is called from a Forth word.
The word is C4+ , which does adds 4 to TOS.
git clone git://git.code.sf.net/p/flashforth/code flashforth-code
The project is for MPLABX and FF 4.82 (PIC24-30-33).
The XC16 compiler needs also to be installed.
Any suggestions or improvements on how to call C-code from Forth
are appreciated.
Thanks
Mike
|