chou@june.cs.washington.edu (Pai Chou) (11/13/90)
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. I plan to make my program public domain. Thanks Pai Chou chou@june.cs.washington.edu
hd7x@vax5.cit.cornell.edu (11/14/90)
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)