From 67d25d837ac55f28a366c0a3b262e439a6e75fc3 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sat, 19 Aug 2017 12:15:28 +0200 Subject: Add AmForth --- amforth-6.5/common/lib/hardware/xonxoff.frt | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 amforth-6.5/common/lib/hardware/xonxoff.frt (limited to 'amforth-6.5/common/lib/hardware/xonxoff.frt') diff --git a/amforth-6.5/common/lib/hardware/xonxoff.frt b/amforth-6.5/common/lib/hardware/xonxoff.frt new file mode 100644 index 0000000..d6a59d9 --- /dev/null +++ b/amforth-6.5/common/lib/hardware/xonxoff.frt @@ -0,0 +1,27 @@ +\ +\ enrich the serial IO with XON/XOFF +\ this is not a complete and fool-proof +\ + +\ #requires is.frt + +$11 constant XON +$13 constant XOFF + +\ original refill +variable xt-refill + +: refill-xon + XON emit + xt-refill @ execute + XOFF emit +; + +: +xonxoff + ['] refill defer@ xt-refill ! + ['] refill-xon is refill +; + +: -xonxoff + xt-refill @ is refill +; -- cgit v1.2.3