From 0f834511932e62724feaaf073e121608eac6c13b Mon Sep 17 00:00:00 2001 From: Virgil Dupras Date: Sun, 3 Jan 2021 13:56:53 -0500 Subject: [PATCH] trs80: Improve RS-232 driver I could drive my RC2014 from my TRS-80 4P (using the Remote Shell coming in the next commit)! A challenge I faced was that the RC2014 spits characters too fast and the CTS line of its ACIA modules (both the 6850 and SIO/2 ones) are hard-wired to ground, making flow control difficult. I solved this, for now, by lowering comm speed. This driver improvement makes CL BEGIN 0xea PC@ 0x40 AND UNTIL 0xeb PC! ; -: CL< BEGIN 0xea PC@ 0x80 AND UNTIL 0xeb PC@ ; +CODE _ + 0xea INAi, 0x80 ANDi, IFZ, PUSH0, ELSE, + 0xeb INAi, PUSHA, PUSH1, THEN, +;CODE +: CL ' EMIT **! ' CL< ' KEY **!