home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!lax.pe-nelson.com!lax!twbrown
- From: twbrown@PE-Nelson.COM (Tom W. Brown)
- Newsgroups: comp.os.ms-windows.programmer.misc
- Subject: Re: A quick question
- Message-ID: <684@lax.lax.pe-nelson.com>
- Date: 5 Nov 92 18:06:08 GMT
- References: <1992Nov4.142239.8200@msuinfo.cl.msu.edu>
- Sender: news@lax.pe-nelson.com
- Organization: PE-Nelson
- Lines: 22
-
- In article <1992Nov4.142239.8200@msuinfo.cl.msu.edu>, regentin@cpsin2.cps.msu.edu (Curtis Regentin) writes:
- |>
- |> Howdy, I'm fairly new to windows programming, and I've got a quick
- |> question that I hope someone can help me out with. I'm writing some
- |> data collection software, and I need to do some simple interaction with
- |> an IO card. Will windows let me just write to some registers at say
- |> 0x300? Do I have to tell it that I'm going to be using that area? If
- |> so, how? (Using 3.0 on a 386, btw ;)
-
- Yes, Windows will allow I/O access -- you can do this in C/C++ with the
- inport() and outport() routines, or in assembly language.
-
- If you need to access memory mapped data then you'll need to use the exported
- selectors (e.g. __0000H) to build the pointers, but port I/O will work
- without any extra effort (at least it does for us :-)
-
-
- ----------------------------------------------------------------------------
- Tom Brown | "'ow d'you know 'e's a king?
- PE Nelson Systems | 'cause 'e 'asn't got shit all over 'im!"
- twbrown@pe-nelson.com | Monty Python and the Holy Grail
- ----------------------------------------------------------------------------
-