mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-23 15:58:05 +11:00
c1ece95089
The commit ended up being much bigger than anticipated. This was a long thread of underlying complexities. This lead to the creation of interesting concepts such as (sysv).
13 lines
173 B
Forth
13 lines
173 B
Forth
: SLEN ( a -- n )
|
|
DUP ( astart aend )
|
|
BEGIN
|
|
DUP C@ 0 = IF -^ EXIT THEN
|
|
1 +
|
|
AGAIN
|
|
;
|
|
|
|
: BS 8 EMIT ;
|
|
: LF 10 EMIT ;
|
|
: CR 13 EMIT ;
|
|
: SPC 32 EMIT ;
|