Forth
1. Forth
ID: ffb8be57-d874-4540-9fe0-9efea6559185 CREATED: <2025-01-18 Sat 20:44>
forth.com – jonesforth.S – c2d7fa/jonasforth: Forth interpreter written in bare-metal assembly running on UEFI (unfinished) – Forth
–- Factor is a cool concatenative lang but unfortunately the C interface (vm/master.h) no longer exists on the master branch.
- Real Programmers Don't Use Pascal
- Assembly and Machine Code Interfacing in Forth Programming - PiEmbSysTech
1.1. gforth
ID: c8359e6e-401b-4c7a-915f-98dc2759c995 CREATED: <2025-03-03 Mon 20:04>–
1.2. avrforth
ID: 8263ab5f-ced9-4bc6-b22c-2d1f319394ee CREATED: <2025-08-08 Fri 21:38>–
- overview
avrforth is a 16-bit subroutine threaded forth kernel for atmel's avr series of microcontrollers. Current development is done for the at90can128 (my cansynth board, to be exact), but it will run on most any mega device with minimal adjustments.
avrforth borrows some ideas from Terry Loveall's 4word. It is a colorless colorforth. The interpreter only interprets. Words must be compiled explicitly using the ] operator. Numeric input is handled by $, which parses the next word as a hexidecimal number.
avrforth uses null-terminated strings internally against tradition. I may switch to counted strings if they prove easier to deal with.
avrforth supports using the entire 128k instruction address space of the atmega128 and at90can128 for code.
avrforth has an interactive interpreter. It interprets input from the uart and compiles directly to flash. avrforth does not require separate memory to store program tokens.
avrforth has an integrated assembler. Assembly code words can be added without recompiling the kernel.
avrforth is public domain.
- requirements
You need a host forth system to assemble avrforth. Development is done with gforth. You also need a utility to program the flash and a terminal program to communicate with the kernel through the avr's uart. I use avrdude and picocom for those tasks.
1.3. flashforth
ID: 3f65cfc7-f3b0-4b50-b20a-d775936ad08f CREATED: <2025-08-08 Fri 21:39>–
1.4. colorforth
ID: 2a285bbe-715d-49a5-8fcb-df9921c3352b CREATED: <2025-08-08 Fri 21:40>
Chuck Moore's colorForth, OKAD and S40 Forth Multicomputer chip
–1.5. Books
ID: 35de6467-e9fc-49f4-b46b-0e05029f9f48 CREATED: <2025-02-13 Thu 22:32>–
2. Factor
CREATED: <2025-01-18 Sat 20:44> ID: b0f61b51-fbd8-4b45-a8cd-0a2e08864fed–
3. Joy
CREATED: <2025-01-18 Sat 20:44> ID: 39af0f8f-aff7-40f3-a139-e1338a6bb966–