retroforth/interface/double.retro
crc 5be846615b add double:sip and double:dip
FossilOrigin-Name: 57b3ab635335213b2d93287572cf7d85e6c46127c715f1621daf7e12c8cd4dec
2022-08-30 16:28:55 +00:00

19 lines
356 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 ;
~~~