home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast.iso / io_util / serial.doc < prev    next >
Text File  |  1994-03-07  |  2KB  |  57 lines

  1. SERIAL inserts itself into memory below command.com (it uses
  2. the "terminate but stay resident" DOS call), and changes the ROM
  3. bios interupt vectors for rs232 io to use interupt driven I/O.
  4.  
  5. Thus if you have a program that uses the ROM BIOS to do serial I/O,
  6. and the program has been limited in speed by the poor performance
  7. of the standard ROM routines, all you need to do is run SERIAL first,
  8. and the program will suddenly magically work at speeds up to 9600 bps.
  9. This is also useful for writing programs that will be transportable
  10. to IBM lookilikes that emulate the ROM BIOS, but not the same hardware
  11. configuration.
  12.  
  13. Instructions for use:
  14.  
  15.     edit SERIAL to reflect your choice of buffer size and
  16.         handshaking characters.
  17.     assemble using the macro assembler.
  18.     link using link.
  19.     convert to COM file using exe2bin.
  20.     delete .EXE file.
  21.     SERIAL works with both DOS 1.1 and 2.0.
  22.  
  23. Limitations:
  24.  
  25.     It isnt clear that the "initialize port" function
  26.     of int 14h works propery.
  27.  
  28.     Various IBM programs will break SERIAL by virtue of
  29.     not leaving the serial port as it was found.  Most
  30.     notable amoung these are MODE and BASICA.  If this
  31.     happens, it will probably be necessary to power cycle
  32.     the system.
  33.  
  34.     SERIAL is set up for COM1 only.  It could easilly
  35.     be converted to use COM2, and with slightly more
  36.     difficulty, both.
  37.  
  38.     SERIAL only receives characters on an interupt basis,
  39.     characters output to the serial port are sent in the
  40.     old slow manner.  Thus SERIAL is not particurally
  41.     useful for, say, a serial printer spooler.
  42.  
  43.     SERIAL does not check the various other RS232 signals
  44.     that the orignal ROM routine do.  Thus, depending on
  45.     exactly how the hardware works, hardware handshaking
  46.     may not work.
  47.  
  48.  
  49. If anyone makes useful changes, Id like to here about them [in
  50. particular, a "SERIAL COM1:9600,n,8,1,<bufsiz>" user interface
  51. might be nice.  SERIAL already uses the space taken up by the
  52. initialization code as part of the buffer].
  53.  
  54. Enjoy
  55. BillW
  56.  
  57.