home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / mswindo / programm / misc / 5286 < prev    next >
Encoding:
Text File  |  1993-01-23  |  1.9 KB  |  48 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!ira.uka.de!Sirius.dfn.de!tubsibr!postnntp
  3. From: hestermeyer@ida.ing.tu-bs.de (Andreas Hestermeyer)
  4. Subject: re: Memory I/O operation in windows. How?
  5. Message-ID: <1993Jan22.181056.26438@ibr.cs.tu-bs.de>
  6. Sender: postnntp@ibr.cs.tu-bs.de (Mr. Nntp Inews Entry)
  7. Organization: Inst. f. DV-Anlagen, TU Braunschweig, Germany
  8. References: <C132Cs.Cpp@newsserver.technet.sg>
  9. Date: Fri, 22 Jan 1993 18:10:56 GMT
  10. Lines: 36
  11.  
  12. In article <C132Cs.Cpp@newsserver.technet.sg> avircmei@solomon.technet.sg (Asia Matsushita) writes:
  13. >
  14. >Hello programmers,
  15. >
  16. >    I have very little experience in programming for MsWIndows 3.x so bare
  17. >with me if I have asked some stupid questions.
  18. >
  19. >    Here is a bit of backgroud of my program. I have a hardware prototype board
  20. >with a 2k SRAM onboard. THe address of the SRAM is set to D0000 (linear address) or
  21. >D000:0000. I need to write a program in windows to read some data from a file using 
  22. >the _open() function into a buffer and the copy the contents from that buffer into
  23. >the SRAM at linear address D0000. Could I just use hmemcpy() function? Or do I need to
  24. >convert D0000 into Selector:offset type of address? If so, how could I do that? I
  25. >read somewhere that using the DPMI software interrupt function 31 I could do that.
  26. >Is that true? 
  27. >
  28. >    Any inputs well be appreciated. Thanks for listening at my problems.
  29. >
  30. >    One more think, what is INT 4Bh? Could not find any descriptions in all of
  31. >my reference.
  32. >
  33. >
  34. >slim...
  35. >--
  36. >Lim Sau-Tsien
  37. >
  38. >Address: slim@ams.mei.co.jp
  39. >     avircams@solomon.technet.sg
  40. >
  41.  
  42. Some time ago, I used a function which installs a new segment descriptor for
  43. a given physical segment address. Unfortunately, I forgot the funtion's name but
  44. its in the standards set of the API functions. You might easyly find it in 
  45. the help file.
  46. Regards,
  47.   Andreas H.
  48.