projects
/
rrq
/
rrqforth.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
doc fiddling
[rrq/rrqforth.git]
/
adoc
/
p_2dup.adoc
diff --git
a/adoc/p_2dup.adoc
b/adoc/p_2dup.adoc
index 17c000554b060b20fa661e41c7ddb956c491e383..0b39b0853f948ed029a7c3887d3d04dc6fbf0b94 100644
(file)
--- a/
adoc/p_2dup.adoc
+++ b/
adoc/p_2dup.adoc
@@
-1,9
+1,20
@@
+// 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 )
+....
+"2DUP" is a function word that duplicates the top 2 cells on the data
+stack.
+
+====
+.Word: 2DUP
+[caption='Definition concept {counter:exec}: ']
----
----
-stack.asm: WORD p_2dup, '2DUP',fasm
+: 2DUP OVER OVER ;
----
----
-
+====