home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / mswindo / programm / misc / 3584 < prev    next >
Encoding:
Internet Message Format  |  1992-11-20  |  1.5 KB

  1. Path: sparky!uunet!olivea!charnel!sifon!VM.MPG.MCGILL.CA
  2. From: CCMS@MUSICM.MCGILL.CA (Marc St-Louis)
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: Serial Communications and Windows ?
  5. Message-ID: <20NOV92.17743545.0023@VM.MPG.MCGILL.CA>
  6. Date: 20 Nov 92 21:25:45 GMT
  7. Sender: usenet@MUSICM.MCGILL.CA
  8. Organization: McGill University Systems Inc (MUSIC/SP)
  9. Lines: 29
  10. Nntp-Posting-Host: vm.mpg.mcgill.ca
  11.  
  12. Hi There Windows Gurus,
  13.  
  14. I'm about to write my first windows program. Actually, I want to
  15. port a DOS communication program I wrote, to Windows. I'm an experienced
  16. DOS programmer, now learning about Windows (God knows it ain't easy).
  17.  
  18. Here are some facts on the communication program I wish to port to
  19. Windows. It doesn't use BIOS or DOS services, but directly talks to the
  20. UART. It takes over the proper INT vector, and the Interrupt Service
  21. Routine simply places incoming bytes in a buffer.
  22.  
  23. Question 1) I beleive I can build the Windows program using the 4
  24.             following segments; Could this work ??
  25.  
  26. CODE segment #1. Interrupt routine saving incoming bytes to a buffer.
  27. DATA segment #1  The program's data.
  28. DATA segment #2. Buffer to save incoming Bytes.
  29. CODE segment #2. Process the bytes saved in buffer.
  30.  
  31. Question 2) What is the best way to implement an Interrupt Service
  32.             Routine for a serial communication port under Windows ?
  33.  
  34. Question 3) Which segments would be Fixed | Movable | Discardable ?
  35.  
  36. Thanks for helping me set my ideas straight.
  37.  
  38. Marc St-Louis
  39. Montreal,Canada.
  40. CCMS@MUSICM.MCGILL.CA
  41.