1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-24 15:28:05 +11:00
collapseos/blk/434

16 lines
319 B
Plaintext
Raw Normal View History

2020-04-28 11:22:06 +10:00
: MOVE ( a1 a2 u -- )
2020-04-26 11:54:07 +10:00
( u ) 0 DO
SWAP DUP I + C@ ( a2 a1 x )
ROT SWAP OVER I + ( a1 a2 x a2 )
C! ( a1 a2 )
LOOP
2DROP
;
2020-04-28 11:22:06 +10:00
: FILL ( a n b -- )
SWAP 2 PICK + ( a b a+n ) ROT ( b a+n a ) DO ( b )
DUP I C!
LOOP
2020-04-26 11:54:07 +10:00
;
2020-04-28 11:22:06 +10:00
: DELW 1- 0 SWAP C! ;
: PREV 3 - DUP @ - ;