standardized call-out blocks
[rrq/rrqforth.git] / adoc / p_2over.adoc
1 // stack.asm:   WORD p_2over, '2OVER',fasm
2
3 anchor:p_2over[]
4
5 === Word: 2OVER
6
7 ....
8 Data stack: ( v1 v2 v3 v4 -- v1 v2 v3 v4 v1 v2 )
9 ....
10
11 "2OVER" is a function word that replicates the second duble-cell pair
12 onto the top of the data stack. This is similar to <<p_over,OVER>> but
13 working with cell pairs rather than single cells.
14
15 ====
16 .Definition concept for 2OVER
17 ****
18 ( v1 v2 v3 v4 -- v1 v2 v3 v4 v1 v2 ) : 2OVER 3 PICK 3 PICK ;
19 ****
20 ====