X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=adoc%2Fp_here.adoc;h=66aa8edcafceb6e0014e43e652c35203a14e72c3;hb=c39ff90d7e44da4984c0b04370eb41d839779d3b;hp=116c817c34ba5281303a20b91e30d39f77cc4fb9;hpb=b7da3f7bbd1cb10241163abdb950472e539e796d;p=rrq%2Frrqforth.git diff --git a/adoc/p_here.adoc b/adoc/p_here.adoc index 116c817..66aa8ed 100644 --- a/adoc/p_here.adoc +++ b/adoc/p_here.adoc @@ -1,12 +1,23 @@ +// compile.asm: WORD p_here,'HERE',dovariable + anchor:p_here[] -Word: HERE ----------- ----- -compile.asm: WORD p_here,'HERE',dovariable ----- +=== Word: HERE + +.... +Data stack: ( -- a ) +.... "HERE" is a variable word that keeps the lowest address of the free -allocation space. It get updated by all words that allocate space. +allocation space. It get updated by all words that allocate memory. + +==== +.allocate 1024 bytes on the heap +[caption='Usage example {counter:example} '] +**** +1024 HEAP @ + HEAP ! +**** +==== +See also <>.