mlofgren@duvan.UUCP (Mikael L|fgren) (08/19/86)
In a special application I need to read (and write) data at high speed
(9600 baud) from the serial channel while maintaining multiple windows on the
screen. (The data is received, processed and displayed in different
windows). However, if I poll the serial channel using the DOS interrupt 14H
(Async port interrupt) things become to slow (of course) and in some special
cases, like scrolling a window or moving windows I'll loose characters.
I need to read the serial port from an interrupt routine, and use a
buffer so that my program don't loose any data while doing some of the
time-consuming work with the windows.
The problem is that I cant figure out how to do this in a proper way. I
think that I can solve it by writing an assembler routine that takes care of
the reading from the serial channel, and change the interrupt-vector for the
serial interrupt board to that routine, but is this the "correct" way to do
it?
I'm using an IBM AT/PC-DOS 3.10 and the application program is written in
C (I use the Lattice C Compiler, Version 3.00).
Who can solve my problem ?
/ Thanks