FORTH and Threaded Interpretive Languages

first previous next last


Max-Gerd Retzlaff, 5. July 2008

https://entropia.de/GPN7

Jonesforth by Richard W. M. Jones

THE INTERPRETER AND RETURN STACK ---------------------------------------------------- (2) What goes in the codeword for the words which are written in FORTH? DOCOL -- the FORTH interpreter function QUADRUPLE: +------------------+ | codeword | +------------------+ DOUBLE: | addr of DOUBLE ---------------> +------------------+ top of return +------------------+ %eax -> | addr of DOCOL | stack points -> | addr of DOUBLE | + 4 = +------------------+ +------------------+ %esi -> | addr of DUP | | addr of EXIT | +------------------+ +------------------+ | etc. | Then we do NEXT. 15