From affd6abf697ef0d777ed64f005303a482b1b6f75 Mon Sep 17 00:00:00 2001 From: Jonas Hvid Date: Mon, 18 Nov 2019 17:49:25 +0100 Subject: [PATCH] Add extension to notes file --- notes => notes.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) rename notes => notes.md (99%) diff --git a/notes b/notes.md similarity index 99% rename from notes rename to notes.md index 6906550..7788c33 100644 --- a/notes +++ b/notes.md @@ -14,11 +14,14 @@ https://raw.githubusercontent.com/nornagon/jonesforth/master/jonesforth.S. ## Dictionary In Forth, words are stored in a dictionary. The dictionary is a linked list whose entries look like this: + +------------------------+--------+---------- - - - - +----------- - - - - | LINK POINTER | LENGTH/| NAME | DEFINITION | | FLAGS | | +--- (4 bytes) ----------+- byte -+- n bytes - - - - +----------- - - - - + For example, DOUBLE and QUADRUPLE may be stored like this: + pointer to previous word ^ | @@ -33,7 +36,8 @@ For example, DOUBLE and QUADRUPLE may be stored like this: ^ len padding | | - LATEST + LATEST + The Forth variable LATEST contains a pointer to the most recently defined word. ## Threaded code -- 2.39.2