home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / msdos / programm / 8588 < prev    next >
Encoding:
Text File  |  1992-08-17  |  1.7 KB  |  40 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!decwrl!csus.edu!netcom.com!jsteele
  3. From: jsteele@netcom.com (John Steele)
  4. Subject: Re: How to detect base address of COMx ports?
  5. Message-ID: <m-0mdl.jsteele@netcom.com>
  6. Date: Tue, 18 Aug 92 03:48:44 GMT
  7. Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
  8. References: <1992Aug18.021412.19094@news.ysu.edu>
  9. Lines: 29
  10.  
  11. In <1992Aug18.021412.19094@news.ysu.edu> af458@yfn.ysu.edu (Jon K. Salmon) writes:
  12.  
  13. >Well, in theory you can look at the 4 WORD values at 40h:00h, which
  14. >SHOULD be the port addrs for COM1-COM4.  How safe/reliable this
  15. >technique is, I do not know.  There is a similar table of LPT port
  16. >addrs (next 4 WORDs?  I don't recall), but I KNOW that is unreliable.
  17.  
  18. >For what it's worth...
  19.  
  20. >-- Jon
  21. >-- 
  22.  
  23. Actually, the only time that I have found that looking for com/lpt base
  24. port addresses in this manner fails is under Novell.  It does work under
  25. every version of MS-DOS, Ntnx, Lantastic and PC-MOS.  When else have you
  26. found it to be unreliable?
  27.  
  28. Another possible method is looking at the data at the standard port addresses
  29. of 3f8,2f8,3e8 and 238 for comm ports and 3bc,378 and 278 for lpts.  This can
  30. be pretty dangerous under a multitasking system of course :)
  31.  
  32. John
  33. -- 
  34. #include <disclaimer.h>            /* route all flames to /dev/null  */
  35. /**************************************************************************/
  36. /*   Systems Analyst      | John Steele     email: jsteele@netcom.com     */
  37. /* Video Business Systems |                                               */
  38. /*   1-800-255-3088       |    Most people spell COBOLSUX incorrectly...  */
  39. /**************************************************************************/
  40.