home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!jvnc.net!netnews.upenn.edu!msuinfo!cpsin2.cps.msu.edu!regentin
- From: regentin@cpsin2.cps.msu.edu (Curtis Regentin)
- Newsgroups: comp.os.ms-windows.programmer.misc
- Subject: Need help, Please! ;)
- Summary: Trying to address a hardware address in windows
- Keywords: help
- Message-ID: <1992Nov9.154843.25103@msuinfo.cl.msu.edu>
- Date: 9 Nov 92 15:48:43 GMT
- Sender: news@msuinfo.cl.msu.edu
- Organization: Dept. of Biochemistry, Michigan State University
- Lines: 24
- Originator: regentin@cpsin2.cps.msu.edu
-
- Hi,
-
- I'm new to Windows (and DOS for that matter) and I'm having a problem
- writing to an interface card (CIO-DIO24H) in a 386 running Windows 3.0.
- I've got a piece of test code, that looks something like this:
-
- char far *p;
- p = (char far *)0x300;
- *p = 0xcf;
-
- This runs under DOS, but causes Exeption 13 in Borland's TDW, at:
-
- C45EFA les bx,[bp-06]
- ->26C607CF mov es:byte ptr [bx], CF
-
- What am I doing wrong? How can I make windows happy, and aware of the
- situation?
-
- Any assistance would be apreciated, or please point me at a reference
- that might have this kind of information.
-
- Thanks,
- Curt Regentin
- roo@itr1.bch.msu.edu
-