1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-12-29 00:58:06 +11:00
collapseos/blk/453

14 lines
284 B
Plaintext
Raw Normal View History

2020-04-26 11:54:07 +10:00
64 CONSTANT INBUFSZ
: RDLNMEM+ 0x57 RAM+ @ + ;
2020-04-26 11:54:07 +10:00
( current position in INBUF )
: IN> 0 RDLNMEM+ ;
( points to INBUF )
: IN( 2 RDLNMEM+ ;
( points to INBUF's end )
: IN) INBUFSZ 2+ RDLNMEM+ ;
( flush input buffer )
( set IN> to IN( and set IN> @ to null )
: (infl) 0 IN( DUP IN> ! ! ;