collapseos/blk/128

12 lines
411 B
Plaintext
Raw Normal View History

: $w POS @ BLK( + acc@ 0 DO
BEGIN C@+ WS? UNTIL BEGIN C@+ WS? NOT UNTIL LOOP
1- BLK( - 1023 MIN POS ! ;
: $W POS @ BLK( + acc@ 0 DO
BEGIN C@- WS? UNTIL BEGIN C@- WS? NOT UNTIL LOOP
1+ BLK( - DUP 0< IF DROP 0 THEN POS ! ;
2020-06-04 20:07:02 -04:00
: handleM ( c -- f )
2020-06-04 18:52:59 -04:00
DUP '0' '9' =><= IF num 0 EXIT THEN
2020-06-04 20:07:02 -04:00
DUP CMD 2+ C! CMD FIND IF EXECUTE ELSE DROP THEN
2020-06-04 18:52:59 -04:00
UPPER 'Q' = ;
2020-06-04 20:07:02 -04:00
: modeM ['] handleM MODE ! 'M' MODEC C! ;