retroforth/interface/double.retro
crc dd742823b2 add mem:fetch-double, mem:cell+, double:swap from Rick Carlino
FossilOrigin-Name: 37e2a4d285b6245656eda3514955b7c4da3e840948ef022802536881f1a654c2
2022-08-22 09:26:07 +00:00

16 lines
253 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 ;
~~~