5a6c41609ffd4bdf8dbbe08622f609a0f8df809d
[rrq/rrqforth.git] / adoc / p_here.adoc
1 // compile.asm: WORD p_here,'HERE',dovariable
2
3 anchor:p_here[]
4
5 === Word: HERE
6
7 ....
8 Data stack: ( -- a )
9 ....
10
11 "HERE" is a variable word that keeps the lowest address of the free
12 allocation space. It get updated by all words that allocate memory.
13
14
15 .Usage example
16 ****
17 1024 HEAP @ + HEAP ! ( allocate 1024 bytes on the heap )
18 ****
19
20 See also <<p_allot,ALLOT>>.