home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / mswindo / programm / misc / 3441 < prev    next >
Encoding:
Internet Message Format  |  1992-11-15  |  1.7 KB

  1. Path: sparky!uunet!know!cass.ma02.bull.com!think.com!spool.mu.edu!wupost!cs.utexas.edu!convex!news.utdallas.edu!corpgate!bnrgate!bnr.co.uk!pipex!demon!muir.demon.co.uk!malcolm
  2. From: malcolm@muir.demon.co.uk ("Malcolm S. Muir")
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: Re: SUMMARY: accessing real mode memory
  5. Message-ID: <721846185snz@muir.demon.co.uk>
  6. Date: 15 Nov 92 16:49:45 GMT
  7. References: <1992Nov11.095107.6433@rhrk.uni-kl.de>
  8. Sender: usenet@gate.demon.co.uk
  9. Reply-To: malcolm@muir.demon.co.uk
  10. Organization: Muir
  11. Lines: 26
  12. X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.18)
  13.  
  14.  
  15. In article <1992Nov11.095107.6433@rhrk.uni-kl.de> baum@kirk.es.go.dlr.de writes:
  16.  
  17. >Hi!
  18. >
  19. >I originally posted a question on accessing real mode memory (the first MB)
  20. >directly. This is needed to read/write to memory located on add on boards
  21. >as frame grabbers grafics cards, etc. The solution is relatively simple and
  22. >was supplied to me first by nar@math.wayne.edu (Mark Narduzzi) and then by
  23. >brad@huey.jpl.nasa.gov for use with Borland C++ 3.1. 
  24. >
  25. >The Windows kernel supplies selectors for 64KB size memory pages, which are
  26. >called __A000H, __B000H, ... These are used in the following manner to access
  27. >memory D0000-DFFFF:
  28. >
  29. >extern WORD _D000H;
  30. >LPBYTE fp = MAKELONG(0, &_D000H);
  31.  
  32. There is also a _0000H, _0040H and _ROMBIOS - very useful...
  33.  
  34. -- 
  35. =============================================================================
  36. Malcolm S. Muir                              EMAIL: malcolm@muir.demon.co.uk
  37. Sunderland                                   CIX: mmuir BIX: mmuir
  38. England                                      CSERVE: 100012,31
  39. ======================= PGP 2.0 Public Key Available ========================
  40.