mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-27 17:28:06 +11:00
12 lines
244 B
Plaintext
12 lines
244 B
Plaintext
( current position in INBUF )
|
|
: IN> 0x30 RAM+ ;
|
|
( points to INBUF )
|
|
: IN( 0x32 RAM+ @ ;
|
|
( points to INBUF's end )
|
|
: IN) 0x40 ( buffer size ) IN( + ;
|
|
|
|
( flush input buffer )
|
|
( set IN> to IN( and set IN> @ to null )
|
|
: (infl) 0 IN( DUP IN> ! ! ;
|
|
|