Data stack: ( v -- )
+X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=reference.html;h=9cb4b59609eabf30834431443a2a66a96331f340;hb=2c1ddb0d590be01213e6aab07bc5d073b0d3c567;hp=04da3738999684d452c0701a1335e93ede9ccd18;hpb=04f2de0478f8924fecee363057c208434f32a119;p=rrq%2Frrqforth.git diff --git a/reference.html b/reference.html index 04da373..9cb4b59 100644 --- a/reference.html +++ b/reference.html @@ -770,12 +770,18 @@ asciidoc.install(); ! C@ C! +W@ +W! +D@ +D! 2@ 2! !+ @n++ @n-- C, +W, +D, S" >R R@ @@ -1142,6 +1148,52 @@ at the current free head address, which also is incremented.
Data stack: ( v -- )
+"W," (W-comma) is a function word that puts a "word" (double-byte) on +the HERE heap. The two least significant bytes of the value +are put at the current free head address, which also is incremented +accordingly.
Data stack: ( v -- )
+"D," (D-comma) is a function word that puts a "double word" +(double-byte) on the HERE heap. The four least significant +bytes of the value are put at the current free head address, which +also is incremented accordingly.
Data stack: ( a -- v )
+"W@" is a function word that pushes the "word" (double-byte) value v +from the address a.
Data stack: ( -- v ) Return stack: ( v -- v )
+"R@" is a function word that "copies" the top return stack value onto +the data stack.
Data stack: ( v a -- )
+"W!" is a function word that stores the "word" (2-byte) value v (the +two least significant bytes of the cell) at the address a.
Data stack: ( v a -- )
+"D!" is a function word that stores the "doublw word" (4-byte) value v +(the four least significant bytes of the cell) at the address a.
Data stack: ( -- v ) Return stack: ( v -- v )
@@ -3726,7 +3830,7 @@ is deepest.