mirror of
https://github.com/hsoft/collapseos.git
synced 2024-10-06 17:30:57 +11:00
f0cbda1f2e
Modest first step
11 lines
144 B
Forth
11 lines
144 B
Forth
: SLEN ( a -- n )
|
|
DUP ( astart aend )
|
|
BEGIN
|
|
DUP C@ 0 = IF -^ EXIT THEN
|
|
1 +
|
|
AGAIN
|
|
;
|
|
|
|
: LF 10 EMIT ;
|
|
: SPC 32 EMIT ;
|