projects
/
rrq
/
rrqforth.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
adding execution control words
[rrq/rrqforth.git]
/
adoc
/
p_tuck.adoc
1
// stack.asm: WORD p_tuck, 'TUCK',fasm
2
3
anchor:p_tuck[]
4
5
=== Word: TUCK
6
7
....
8
Data stack ( v1 v2 -- v2 v1 v2 )
9
....
10
11
"TUCK" is a function word that "inserts" the top cell below the second
12
cell on the data stack.
13
14
====
15
.Word: TUCK
16
[caption='Definition concept {counter:exec}: ']
17
----
18
: TUCK SWAP OVER ;
19
----
20
====