🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #3028

Re: Code Request for using the Serial port

#3028
From: hd7x
Date: Wed, 14 Nov 1990 09:33
20 lines
1293 bytes
In article <13711@june.cs.washington.edu>,
chou@june.cs.washington.edu (Pai Chou) writes:
> Hi, I am porting a terminal emulator to the PC, but
> I don't have much previous experience with the PC.
> I am not sure how to access the serial port.
>
> How do you
>
>  - reset, set baud rate, parity, etc
>  - find how how many bytes there are left to be read
>  - how to read/write the serial port.
>
> I am doing this in Turbo Pascal.  If you have a small
> sample code that you can share, please send it to me.

PC Magazine had a good sample program called DOSTERM that covered all the
necessary functions (except interrupt driven output, which isn't essential).  I
believe it was Vol 8, No. 16 and can be found on Simtel.  It's commented
assembler source code that helped me quite a bit.
-Sanjay Aiyagari (hd7x@vax5.cit.cornell.edu)
Technical Details
Message-ID: <1990Nov14.053346.989@vax5.cit.cornell.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!rpi!batcomputer!cornell!vax5.cit.cornell.edu!hd7x
References: <13711@june.cs.washington.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!rpi!batcomputer!cornell!vax5.cit.cornell.edu!hd7x
From: hd7x@vax5.cit.cornell.edu
Newsgroups: comp.os.msdos.programmer
Subject: Re: Code Request for using the Serial port
Message-ID: <1990Nov14.053346.989@vax5.cit.cornell.edu>
Date: 14 Nov 90 09:33:46 GMT
References: <13711@june.cs.washington.edu>
Distribution: usa,comp
Lines: 20