home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / mswindo / programm / misc / 3323 < prev    next >
Encoding:
Internet Message Format  |  1992-11-09  |  1.1 KB

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