Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!decvax!bellcore!ulysses!mhuxr!mhuxn!ihnp4!houxm!whuxl!whuxlm!akgua!gatech!seismo!harvard!talcott!panda!genrad!mit-eddie!moore From: moore@mit-eddie.UUCP Newsgroups: net.micro.trs-80 Subject: Re: Model 100 Asynch I/O Message-ID: <1661@mit-eddie.MIT.EDU> Date: Sat, 19-Apr-86 15:46:05 EST Article-I.D.: mit-eddi.1661 Posted: Sat Apr 19 15:46:05 1986 Date-Received: Mon, 21-Apr-86 21:33:11 EST References: <190@atari.UUcp> Reply-To: moore@mit-eddie.UUCP (Andrew M. Moore) Distribution: na Organization: MIT, EE/CS Computer Facilities, Cambridge, MA Lines: 20 Keywords: Asynchronous Serial Communications You can use I$=INPUT$(1,1) [where MDM: or COM: is opened as file #1] to input characters one at a time. You can use this in conjunction with the status of PEEK(65414) which holds the number of bytes pending in the modem receive buffer. Don't know if this will solve the problem of losing characters (it probably won't) but it does give you a bit more control over the data coming in through the MDM: and/or COM: ports. Just for the record, a handy line to clear the modem input buffer (receive buffer) is 1000 IF PEEK(65414)>0 THEN I$=INPUT$(PEEK(65414),1) ...where MDM:/COM: is opened as file #1. This will clear the input buffer if there are any characters there. If no chars pending, it does nothing. -drew arpa: MOORE%MIT-EECS@MIT-MC.ARPA uucp: ...mit-eddie!moore us: Box 121, North Quincy, MA 02171