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