home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / ibm / pc / hardware / 20443 < prev    next >
Encoding:
Internet Message Format  |  1992-07-27  |  2.4 KB

  1. Path: sparky!uunet!portal!cup.portal.com!Tim_-_Otholt
  2. From: Tim_-_Otholt@cup.portal.com
  3. Newsgroups: comp.sys.ibm.pc.hardware
  4. Subject: Re: Adress of the memory
  5. Message-ID: <62969@cup.portal.com>
  6. Date: Mon, 27 Jul 92 22:09:10 PDT
  7. Organization: The Portal System (TM)
  8. References:  <1992Jul22.071112.3652@swanee.ee.uwa.oz.au>
  9. Lines: 48
  10.  
  11. This was posted:
  12.  
  13. >15907.3.14825.1 Adress of the memory 
  14. >7/22/92 00:11 7/325 zhang@zeus (Zhang Ya Xin) 
  15. >Lines 1 to 7 of 7 (100%)   
  16. >----- 
  17. >    We have a TANG IBM/PC 386 which has 4M of memory. Normally the adress  
  18. >of memory in the PC consists of a segment plus an offset, say, ****:****.
  19. >1M is the limitation. My question is how can I access the memory beyond 1M?
  20. >In other words, is there an adress of the memory beyond 1M in the PC?  
  21. >    Many thanks to the help. 
  22. >
  23.  
  24. Dear Zhang Ya Xin,
  25.  
  26. I'm going to assume you are a progammer trying to access this memory.
  27.  
  28. You can access this memory by entering protected mode -- but given your
  29. level of experience, this doesn't really look like the place to give
  30. you a lesson in protected mode operation.  It's not as simple as real
  31. mode, and you'll break much of the software you currently have to access
  32. this memory.
  33.  
  34. Extended memory can be accessed by programs through the XMS interface
  35. [the easiest way, I think].  Please get a free copy of the XMS specification
  36. from Microsoft.  They will mail it to you for free with some sample code.
  37. You don't need any protected mode experience to use the XMS specification to
  38. access extended memory, and you will be compatible with most programs
  39. [Dos Extenders, Windows, etc, etc, etc] on the market.
  40.  
  41. The other way is to use a C (or Pascal, Ada, whatever) compiler that has
  42. a built in DOS extender so you don't have to worry about accessing this
  43. memory.
  44.  
  45. Since there are so many PCs on the market, accessing extended memory directly
  46. by entering protected mode yourself, and dealing with all the versions
  47. and problems of the 386, the 486, and most chipsets and the handling of
  48. a little piece of hardware called "GATE A20", I recommend learning about
  49. the XMS specification.
  50.  
  51. If you are a die-hard, please reply or email me at timo@cup.portal.com
  52.  
  53. Aloha,
  54. Tim
  55. ------------------------------------------------------------------------
  56. (408) 894-4290        "You can't use the INT instruction in an SMI!"
  57. Milpitas, CA        -- Spoken by a non-believer at my last job [BIOS!]
  58. ----------------------------------------------------------------------------
  59.