1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-27 18:48:05 +11:00
collapseos/blk/128

12 lines
416 B
Plaintext
Raw Normal View History

: $w EDPOS @ BLK( + acc@ 0 DO
BEGIN C@+ WS? UNTIL BEGIN C@+ WS? NOT UNTIL LOOP
1- BLK( - 1023 MIN EDPOS ! ;
: $W EDPOS @ BLK( + acc@ 0 DO
BEGIN C@- WS? UNTIL BEGIN C@- WS? NOT UNTIL LOOP
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' = ;
: modeM ['] handleM MODE ! mode! SPC ;