more and better documentation and some reorganisation
[rrq/rrqforth.git] / adoc / p_get_n_increment.adoc
1 // memory.asm:  WORD p_get_n_increment, '@n++',fasm
2
3 anchor:p_get_n_increment[]
4
5 === Word: @n++
6
7 ....
8 Data stack: ( a n -- v )
9 ....
10
11 "@n++" is a function word that pushes the value from the address, a,
12 then increments the cell at that address by n.
13
14 ====
15 .Defintion concept for @n++
16 ****
17 ( a n -- v ) : @n++ OVER @ DUP ROT + ROT ! ;
18 ****
19 ====