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