Command IO¶
The standard command IO uses interrupt driven receive and polled send. The receive interrupt fills an 16 byte long ring buffer. The KEY and KEY? words are vectored to code that checks this buffer and acts accordingly.
: isr data-port c@ >rx-buf ;
The KEY and KEY? words can check whether there are unread characters in the buffer and act accordingly.