mirror of
https://github.com/hsoft/collapseos.git
synced 2024-09-06 23:48:44 +10:00
With KEY and EMIT being switch words, most of the high layer can be defined before drivers. In addition to this change, I've compacted core blocks which were becoming quite sparse.
11 lines
274 B
Plaintext
11 lines
274 B
Plaintext
( Initializes the readln subsystem )
|
|
: RDLN$
|
|
H@ 0x32 ( IN(* ) RAM+ !
|
|
( plus 2 for extra bytes after buffer: 1 for
|
|
the last typed 0x0a and one for the following NULL. )
|
|
IN) IN( - ALLOT
|
|
(infl)
|
|
['] RDLN< ['] C<* **!
|
|
1 0x06 RAM+ ! ( 06 == C<? )
|
|
;
|