3 ms·
The previous reply explained things pretty much - many implementations have "Words" (i.e. functions) be invoked by just jumping from one to the next. If you ha
by stevekemp 7y ago
The previous reply explained things pretty much - many implementations have "Words" (i.e. functions) be invoked by just jumping from one to the next.
If you have some spare time reading this implementation is very enlightening:
https://github.com/nornagon/jonesforth/blob/master/jonesforth.S https://github.com/nornagon/jonesforth/blob/master/jonesfort...
Though I appreciate it is a little low-level it explains things very well, and is readable if you have only a hazy grasp of assembly language.
The specific documentation I was thinking about is this section on calling sequential functions:
https://github.com/nornagon/jonesforth/blob/4f853252f715132e7716cbd44e5306cefb6a6fec/jonesforth.S#L235 https://github.com/nornagon/jonesforth/blob/4f853252f715132e...