The Address Interpreter's entry point - NEXT
Some parts of this page/site are currently incomplete & will be updated asap
Other parts will change continually so use “Refresh” in your browser !!
There is extensive use of “Tooltips” text to support learning which do not seem to render on a Smartphone. This site is best viewed via a computer’s HD monitor
NEXT This is the inner interpreter that uses the interpretive pointer IP to execute compiled Forth definitions. It is not directly executed but is ff the return point for all code proceedures. It acts by fetching the address pointed by IP, storing this value in register W. It then jumps to the address pointed to by the address pointed to by W. W points to the code field of a definition which contains the address of the code which executes for that definition. This usage of indirect threaded code is a major contributor to the power, portability, and extensibility of Forth
0020E0 D5 WHPUSH: PUSH DE
0020E1 E5 HPUSH: PUSH HL
0020E2 CD AE 02 NEXT: CALL PAUSE
0020E5 0A NEXT2: LD A,(BC)
0020E6 03 INC BC
0020E7 6F LD L,A
0020E8 0A LD A,(BC) ; Preserve BC !!
0020E9 03 INC BC
0020EA 67 LD H,A
0020EB ED17 NEXT1: LD DE,(HL)
0020ED 23 INC HL
0020EE EB EX DE,HL
0020EF E9 JP (HL)