mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-30 21:08:05 +11:00
7c20501f27
TODO: implement X['] so that I can remove those XCURRENT patterns.
14 lines
250 B
Plaintext
14 lines
250 B
Plaintext
: .2 DUP 10 < IF SPC THEN . ;
|
|
: EOL? ( c -- f ) DUP 0xd = SWAP NOT OR ;
|
|
: LIST
|
|
BLK@
|
|
16 0 DO
|
|
I 1+ .2 SPC
|
|
64 I * BLK( + DUP 64 + SWAP DO
|
|
I C@ DUP EOL? IF DROP LEAVE ELSE EMIT THEN
|
|
LOOP
|
|
NL
|
|
LOOP
|
|
;
|
|
|