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