projects
/
rrq
/
rrqforth.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
no "continue" in bp 7 commands
[rrq/rrqforth.git]
/
adoc
/
p_2over.adoc
diff --git
a/adoc/p_2over.adoc
b/adoc/p_2over.adoc
index 772d238b86f7ead92b75303b2ed1e688da0b0e37..fcfc184e7d29dc82abfb53d6c2188873075978d7 100644
(file)
--- a/
adoc/p_2over.adoc
+++ b/
adoc/p_2over.adoc
@@
-1,9
+1,20
@@
+// stack.asm: WORD p_2over, '2OVER',fasm
+
anchor:p_2over[]
anchor:p_2over[]
-Word: 2OVER
-----------
+=== Word: 2OVER
+
+....
+Data stack: ( v1 v2 v3 v4 -- v1 v2 v3 v4 v1 v2 )
+....
-----
-stack.asm: WORD p_2over, '2OVER',fasm
-----
+"2OVER" is a function word that replicates the second duble-cell pair
+onto the top of the data stack. This is similar to <<p_over,OVER>> but
+working with cell pairs rather than single cells.
+====
+.Definition concept for 2OVER
+****
+( v1 v2 v3 v4 -- v1 v2 v3 v4 v1 v2 ) : 2OVER 3 PICK 3 PICK ;
+****
+====