home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / os2 / programm / 6278 < prev    next >
Encoding:
Internet Message Format  |  1992-11-08  |  1.6 KB

  1. Path: sparky!uunet!ogicse!flop.ENGR.ORST.EDU!flop.ENGR.ORST.EDU!usenet
  2. From: murrayk@prism.CS.ORST.EDU (the Dodger)
  3. Newsgroups: comp.os.os2.programmer
  4. Subject: CSet/2 and port access.
  5. Message-ID: <1dij4sINNmek@flop.ENGR.ORST.EDU>
  6. Date: 8 Nov 92 08:29:16 GMT
  7. Article-I.D.: flop.1dij4sINNmek
  8. Distribution: world
  9. Organization: Oregon State University, Computer Science Dept.
  10. Lines: 24
  11. NNTP-Posting-Host: prism.cs.orst.edu
  12.  
  13. Alright, I'm starting to get frustrated here. I've been using CSet/2 for a
  14. couple of days now and I love it. However, there are no hardware port access
  15. functions such as outp and inp. I really need these functions to do what I
  16. am trying to do. So I thought that I would just write the port functions in
  17. assembler, assemble them with TASM 3.0, and then link it all together. Well,
  18. it all goes fine until I run the program. The program just exits. I have no
  19. idea what the exit codes are (it is a full screen graphics program) and I
  20. get no access violations or anything like that.
  21.  
  22. Someone hinted at the fact that the hardware ports cannot be accessed from
  23. 32bit protected mode. Is this true? Am I going to have to try to write a
  24. ring 0 dll to get this done? And if so, what will be the performance benefits
  25. of this. My program will eventually be doing a LOT of port access, and if it
  26. has to call a dll a few million times, then won't that slow things down a lot?
  27.  
  28. Thanks for any help.
  29.  
  30. Keith
  31.  
  32. -- 
  33.                               ____          _____  ____
  34. Keith Murray                 /     /___/ /\ \    \ \____    P.O. Box 1889
  35. murrayk@prism.cs.orst.edu   /___  /   / /__\ \____\ ____\   Corvallis OR 97339
  36.    the Dodger                  s  o  f  t  w\ a  r  e
  37.