2020-05-02 21:47:32 -04:00
|
|
|
( Initializes the readln subsystem )
|
|
|
|
: RDLN$
|
|
|
|
( 57 == rdln's memory )
|
|
|
|
H@ 0x57 RAM+ !
|
2020-05-13 09:28:32 -04:00
|
|
|
( plus 2 for extra bytes after buffer: 1 for
|
2020-05-02 21:47:32 -04:00
|
|
|
the last typed 0x0a and one for the following NULL. )
|
2020-05-13 09:28:32 -04:00
|
|
|
IN) IN> - 2+ ALLOT
|
2020-05-02 21:47:32 -04:00
|
|
|
(infl)
|
2020-05-13 09:28:32 -04:00
|
|
|
LIT< RDLN< (find) DROP 0x0c RAM+ !
|
2020-05-02 21:47:32 -04:00
|
|
|
1 0x06 RAM+ ! ( 06 == C<? )
|
|
|
|
;
|
|
|
|
|