retroforth/package/extensions/double.retro
crc 3962c08662 down to 10 words w/o recorded stack comments
FossilOrigin-Name: 9a36cf9d0e7ddd0131df3867aa4285f0c26ccde64ef7c193729932647d8829a3
2024-09-09 18:07:02 +00:00

19 lines
363 B
Forth

~~~
:double:var (:nns-)
d:create swap , , ;
:double:fetch (:a-nn)
fetch-next swap fetch ;
:double:store (:nna-)
&swap dip store-next store ;
:double:const (:nns-)
double:var &double:fetch does ;
:double:swap (:nnmm-mmnn)
rot push rot pop ;
:double:dip (:mnq-mn) rot rot push push call pop pop ;
:double:sip (:mnq-mn) &dup-pair dip double:dip ;
~~~