xForth icon indicating copy to clipboard operation
xForth copied to clipboard

Add UART I/O

Open larsbrinkhoff opened this issue 6 years ago • 3 comments

Add library for using an UART on targets that have it.

larsbrinkhoff avatar Nov 06 '19 14:11 larsbrinkhoff

An abstract TX! and ?RX should do the job. These can even be used for buffered I/O if needed.

TG9541 avatar Nov 06 '19 20:11 TG9541

Right, something like that. I'm thinking I might as well adopt the classical words EMIT, KEY, and KEY?.

An optional extension on top of this would be to have a target resident interpreter.

larsbrinkhoff avatar Nov 07 '19 09:11 larsbrinkhoff

If multitasking (#48) is loaded, KEY should PAUSE.

larsbrinkhoff avatar Nov 07 '19 11:11 larsbrinkhoff