upgrade
[rrq/rrqforth.git] / adoc / p_pick.adoc
index 8f0376f4fd5d94661c70bc893318dad34ee11e74..32f76b24428f0645d201989d9703c8c72b37eb46 100644 (file)
@@ -1,9 +1,16 @@
+// stack.asm:  WORD p_pick, 'PICK',fasm
+
 anchor:p_pick[]
 
-Word: PICK
-----------
+=== Word: PICK
+
+....
+Data stack: ( vu...v1 v0 u -- vu...v1 v0 vu )
+....
+
+"PICK" is a function word that pushes the u:th data stack cell down
+from top onto the data stack. 0 indicates the top cell making it the
+same as <<p_dup,DUP>>, and 1 indicates the second top cell making it
+the same as <<p_over,OVER>>.
 
-----
-stack.asm:     WORD p_pick, 'PICK',fasm
-----