projects
/
rrq
/
rrqforth.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix READ-STREAM-LINE
[rrq/rrqforth.git]
/
adoc
/
p_2dup.adoc
diff --git
a/adoc/p_2dup.adoc
b/adoc/p_2dup.adoc
index 17c000554b060b20fa661e41c7ddb956c491e383..d42513172067365f795a946008e561e039f641a0 100644
(file)
--- a/
adoc/p_2dup.adoc
+++ b/
adoc/p_2dup.adoc
@@
-1,9
+1,19
@@
+// stack.asm: WORD p_2dup, '2DUP',fasm
+
anchor:p_2dup[]
anchor:p_2dup[]
-Word: 2DUP
-----------
+=== Word: 2DUP
+
+....
+Data stack: ( v1 v2 -- v1 v2 v1 v2 )
+....
-----
-stack.asm: WORD p_2dup, '2DUP',fasm
-----
+"2DUP" is a function word that duplicates the top 2 cells on the data
+stack.
+====
+.Definition concept for 2DUP
+****
+( v1 v2 -- v1 v2 v1 v2 ) : 2DUP OVER OVER ;
+****
+====