mirror of
https://github.com/hsoft/collapseos.git
synced 2024-12-28 23:18:04 +11:00
76037ca1e7
That INIT thing is unnecessary.
13 lines
297 B
Plaintext
13 lines
297 B
Plaintext
( Initializes the readln subsystem )
|
|
: RDLN$
|
|
( 57 == rdln's memory )
|
|
H@ 0x57 RAM+ !
|
|
( plus 2 for extra bytes after buffer: 1 for
|
|
the last typed 0x0a and one for the following NULL. )
|
|
IN) IN> - 2+ ALLOT
|
|
(infl)
|
|
['] RDLN< 0x0c RAM+ !
|
|
1 0x06 RAM+ ! ( 06 == C<? )
|
|
;
|
|
|