update
[rrq/rrqforth.git] / adoc / p_literal.adoc
1 // compile.asm: WORD p_literal,'LIT',fasm
2
3 anchor:p_literal[]
4
5 === Word: LIT
6
7 ....
8 Data stack: ( -- v )
9 ....
10
11 "LIT" is a function word that pushes the cell subsequent and moves
12 excution past that. The literal value is thus layed out as if a
13 subsequent CFA pointer in the containing definition, and the LIT
14 execution will make the execution skip past that and instead contine
15 with the CFA pointer following the value.
16
17 It's not a good idea to use "LIT" interactively.
18
19 ====
20 .Definition concept for LIT
21 ****
22 : LIT R> DUP 8 + >R @ ;
23 ****
24 ====
25
26