mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-05 21:40:56 +11:00
15 lines
223 B
Plaintext
15 lines
223 B
Plaintext
|
: KEY
|
||
|
( inc then fetch )
|
||
|
ACIAR> @ 1+ DUP ACIA) @ = IF
|
||
|
DROP ACIA( @
|
||
|
THEN
|
||
|
|
||
|
( As long as R> == W>-1, it means that buffer is empty )
|
||
|
BEGIN DUP ACIAW> @ = NOT UNTIL
|
||
|
|
||
|
ACIAR> !
|
||
|
ACIAR> @ C@
|
||
|
;
|
||
|
|
||
|
|