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:
- 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.
- Don't confuse the 2nd with the 3rd level of indirection
- 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
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.