AmForth is an easily extendible command interpreter for the Atmel AVR8 Atmega micro controller family and some variants of the TI MSP430. It has a turnkey feature for embedded use too.
AmForth is published under the GNU Public License v3 (GPL). A commercial use is possible but for traditional commercial uses there are commercial Forths — amForth just is not one of them.
AmForth runs completely on the controller. It does not need additional hardware. It makes no restrictions for hardware extensions that can be connected to the controller. The default command prompt is in a serial terminal.
AmForth for the AVR8 needs 8 to 12 KB Flash memory, 80 bytes EEPROM, and 200 bytes RAM for the core system. A similar code for the MSP430 fits into 8KB flash. The MSP430 info flash is used for similar purposes as the EEPROM for the AVR8 platform.
Work In Progress¶
Here you’ll find things that are not yet released but will be part of the next release. See the code section at Sourceforge to get the most recent sources
- core(MSP430): cold got the low level init code, called from the MCU reset vector. Add calls to pause to terminal IO words.
- core(ALL): smarter ' (tick).
- core(ALL): renamed find-name to find-xt (addr/len – xt +/-1|0) re-introduced find-name (addr len – nt|0) returning the name token if addr/len was found in the search order. New word search-name ( addr len wid – nt|0).
17.10.2015: release 6.1¶
- core(ALL): Adapt postpone action of the recognizers to comply with Rev. 3. Change your recognizers accordingly.
- core(MSP430): New devices MSP430 F5529 (Flash) and FR5969 (FRAM). See Texas Instruments LaunchPad 430.
- core(MSP430): Extended VM Register A. See Extended VM
- lib(ALL): Fix regressions in Rdefer and does>. Make quotations more robust in corner cases.
6.9.2015: release 6.0¶
- core(ALL): Fix a few regressions like the TAB handling in accept.
- core(AVR8): Fix forth-wordlist to return a valid wordlist id.
- core(MSP430): many small changes to bring it closer to the AVR8. Still fits into 8KB flash.
- global variables like DP (HERE), STATE, HLD etc instead of USER variables-
- Same USER area layout. Including deferred words for terminal IO.
- complete wordlist support including search order and current.
- Emulate AVR EEPROM configuration with a info flash segment. Needs save to store the data permantly.
- Lots of common code, optimized versions of standard words if applicable.
- preparing for more MSP430 device types.