home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / msdos / programm / 8086 < prev    next >
Encoding:
Internet Message Format  |  1992-07-25  |  1.9 KB

  1. Path: sparky!uunet!gatech!gatech!wa4mei!nanovx!mycro!scott
  2. From: scott@mycro.UUCP (Scott C. Sadow)
  3. Newsgroups: comp.os.msdos.programmer
  4. Subject: Re: BIOS INTERRUPTS
  5. Keywords: Serial Comms
  6. Message-ID: <1992Jul25.153332@mycro.UUCP>
  7. Date: 25 Jul 92 19:33:32 GMT
  8. References: <1992Jul22.114740.2882@hippo.ru.ac.za>
  9. Lines: 44
  10.  
  11. In article <1992Jul22.114740.2882@hippo.ru.ac.za>, sppp@hippo.ru.ac.za (Prof P Piacenza) writes:
  12. >
  13. >I have come across what appears to be a confusing discrepancy.
  14. >In Terry Dettmann's book "Dos Programmer's Reference", Que Corp.,
  15. >1988; (an excellent book in my opinion),
  16. >
  17. >on page 425 it states that:
  18. >      BIOS Interrupt 0Bh is used by COM1 & COM3 on the PC & XT,
  19. >      & is used by                  COM2 & COM4 on the AT.
  20. >
  21. >
  22. >      Similarly on page 426 it states that:
  23. >      BIOS Interrupt 0Ch is used by COM2 & COM4 on the PC & XT,
  24. >      & is used by                  COM1 & COM3 on the AT.
  25. >
  26. >I have a terminal emulation program that is hard-coded for COM1,
  27. >but uses Interrupt 0Ch.  This program works on both PC and AT
  28. >class machines!
  29. >
  30. >Also I believe that most PC/XT bioses do not support COMs 3 & 4.
  31. >
  32. >Since I am trying to write a terminal emulation program, I need to have
  33. >this discrepancy sorted out.  Can anybody enlighten me?
  34. >
  35. >-- 
  36. >   L.Piacenza - Chemistry Department - University of Transkei
  37. >   Internet: sppp@hippo.ru.ac.za  Tel. 27-471-3022384
  38. >   Internet: chpp@unitrix.utr.ac.za
  39.  
  40.  
  41. COM1 is usually 0x3F8, and IRQ 4, which is interrupt 12, or 0x0C
  42. COM2            0x2F8,     IRQ 3                     11,    0x0B
  43. COM3            0x3E8      IRQ 4                     12,    0x0C
  44. COM4            0x2E8      IRQ 3                     11,    0x0B
  45.  
  46.  
  47. I have heard/read somewhere that for PS/2, COM3-COM8 all share a common
  48. interrupt line (either IRQ 3 or IRQ 4, I don't recall which) COM1 & COM2,
  49. though, are pretty standard.
  50.  
  51.  
  52.    Scott C. Sadow
  53.    scott@mycro.UUCP
  54.    ...gatech!nanovx!mycro!scott
  55.