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