Close

New feature: DOES>

A project log for eForth for cheap STM8S gadgets

Turn cheap modules from AliExpress into interactive development kits!

thomasThomas 12/01/2016 at 07:050 Comments

The latest version has a working implementation for DOES> in Subroutine Threaded Code eForth which also works for Flash as the compilation target.

As a note to anybody who wants to implement DOES> in an eForth, and is as new to the topic as I am:

  1. I've found only one working implementation for DTC eForth which most likely works (hat tip to Bernie Mentink for his 1993 post in comp.lang.forth). Others you'll see might be missing essential parts. Don't get confused.
  2. Don't confuse the 2nd with the 3rd level of indirection
  3. STC doesn't require an extra Forth NOP word in CREATE. The assembly CALL instruction is the code field, and CALL can be replaced with JP to create a native branch.

GitHub and the files section here are up-to-date.

Discussions