X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=adoc%2Fp_allot.adoc;h=304ce2ab65fa0439111e69fc4e2ef5220e0762b9;hb=bf67023324b2a0c5723dd3167ef757209ba62e01;hp=78440106c47e3047635324c63d9256882035d51b;hpb=f38c72b71edee9d23d958a1af73f843b5d44ccbe;p=rrq%2Frrqforth.git diff --git a/adoc/p_allot.adoc b/adoc/p_allot.adoc index 7844010..304ce2a 100644 --- a/adoc/p_allot.adoc +++ b/adoc/p_allot.adoc @@ -12,20 +12,13 @@ Data stack: ( n -- ) variable with +n+ so as to claim that amount of the heap. ==== -.Word: ALLOT -[caption='Defintion concept {counter:exec}: '] ----- -: ALLOT HERE @ + HERE ! ; ----- -==== - -==== -.Usage example +.Defintion concept for ALLOT **** -HERE @ 16 ALLOT ( -- p ; Claiming 16 bytes ) +( n -- ) : ALLOT HERE @ + HERE ! ; **** ==== -See also <>, <>, <>, <>, -<> and <>. - +==== +.Usage example {counter:example}: claim 16 bytes for variable FOO +CREATE FOO DROP HERE @ 16 ALLOT +====