Microsoft KB Archive/74210

= Emulating Expanded Memory Using EMM386.EXE =

Article ID: 74210

Article Last Modified on 5/12/2003

-

APPLIES TO


 * Microsoft MS-DOS 5.0 Standard Edition
 * Microsoft MS-DOS 5.0a
 * Microsoft MS-DOS 6.0 Standard Edition
 * Microsoft MS-DOS 6.2 Standard Edition
 * Microsoft MS-DOS 6.21 Standard Edition
 * Microsoft MS-DOS 6.22 Standard Edition

-



This article was previously published under Q74210



SUMMARY
To use EMM386.EXE you must have an 80386 or 80486 microprocessor and at least 105K of extended memory available under the Extended Memory Specification (XMS). Extended memory managers such as HIMEM.SYS provide XMS memory. EMM386.EXE uses the XMS memory to emulate expanded memory.

EMM386.EXE places expanded memory pages in the upper memory area (UMA), which is the address range between 640K and 1024K. This range is normally reserved for the system ROM BIOS, as well as video, network, and other hardware adapters.



LIM 3.2 Expanded Memory
To create a LIM 3.2 expanded memory page frame, you need to have a 64K contiguous block of memory available in the UMA. Using four-digit hex notation, a 64K block is equal to 1000h of memory (for example, E000h to EFFFh, or C800h to D7FFh). If you have a 64K block available in the UMA, the default values for EMM386.EXE will automatically create a LIM 3.2 page frame. Assuming that the HIMEM.SYS and EMM396.EXE files are located in the root folder, your CONFIG.SYS file should contain the following lines:

DEVICE=C:\HIMEM.SYS

DEVICE=C:\EMM386.EXE

This will create a default of 256K of expanded memory. If you use the include or exclude switches (i=, or x=, frame=, or /p switches.

LIM 4.0 Expanded Memory
If you don't have a full 64K contiguous block available, you can create up to four LIM 4.0 expanded memory pages using 16K blocks of the UMA. Please note that these pages will not be LIM 3.2 compatible. Using four digit-hex notation, a 16K block is equal to 400h of memory (for example, D000h to D3FFh). Use the p= switch to specify the location of each block. For example, you could use the following lines in your CONFIG.SYS to create four LIM 4.0 pages:   DEVICE=HIMEM.SYS DEVICE=EMM386.EXE RAM i=C800-CFFF p0=C800 p1=CC00 p2=E000 p3=E400 Note: The address ranges used here are for demonstration purposes only. These address ranges may not work on your computer. Consult your hardware documentation to determine the address ranges used by your adapter cards.

See pages 606-607 of the version 5.0 &quot;Microsoft MS-DOS User's Guide and Reference&quot; for more information on these switches.

For more information on this subject query on the following words:

LIM and EMM386.EXE

(c) Microsoft Corporation 2000, All Rights Reserved. Contributions by Kevin Zollman, Microsoft Corporation.

Additional query words: 6.22 5.00 5.00a 6.00 6.20 emulation akz

Keywords: KB74210

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.