projects
/
rrq
/
rrqforth.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bug fix !+
[rrq/rrqforth.git]
/
adoc
/
p_Ccomma.adoc
diff --git
a/adoc/p_Ccomma.adoc
b/adoc/p_Ccomma.adoc
index 0cb190077909cdc9ca30ee902f55d0674bec0029..75992a8f0633d302e3d70f608c966cb90c26ba4f 100644
(file)
--- a/
adoc/p_Ccomma.adoc
+++ b/
adoc/p_Ccomma.adoc
@@
-1,20
+1,24
@@
-Word: C,
---------
+// compile.asm: WORD p_Ccomma,'C,',fasm
+
anchor:p_Ccomma[]
anchor:p_Ccomma[]
-----
-compile.asm: WORD p_Ccomma,'C,',fasm
-----
+=== Word: C,
+
+
+....
Data stack: ( v -- )
Data stack: ( v -- )
+....
-"C,"
is a function word that puts a byte on the heap. It stores
the
-least significant byte of the value to the current free heap address,
-a
nd increments that
.
+"C,"
(C-comma) is a function word that puts a byte on
the
+<<p_here,HERE>> heap. The least significant byte of the value is put
+a
t the current free head address, which also is incremented
.
-.Execution semantics expressed in RRQFORTH
====
====
-: C,
- HERE @ 1 ALLOT C! ( v -- ; Claim 1 byte and put lsb value there )
-;
+.Definition concept for C,
+****
+: C, HERE @ 1 ALLOT C! ; ( v -- ; Claim 1 byte and put lsb value there )
+****
====
====
+See also <<p_colon,:>>, <<p_comma>>. <<p_here,HERE>>, <<p_get,@>>,
+<<p_allot,ALLOT>>, <<p_Cput,C!>> and <<p_semicolon,;>>.