mirror of
https://github.com/hsoft/collapseos.git
synced 2024-12-27 05:18:06 +11:00
bd38d80f9c
and renamed it "Core words". Also, reworded the presentation.
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
|
|
;
|
|
|