encyclopegia.org

High memory area

In DOS memory management, the high memory area (HMA) is the RAM area consisting of the first 65520 bytes above the one megabyte in an IBM AT or compatible computer.[src]

In DOS memory management, the high memory area (HMA) is the RAM area consisting of the first 65520 bytes above the one megabyte in an IBM AT or compatible computer.[src] ==Function== In real mode, the segmentation architecture of the Intel 8086 and subsequent processors identifies memory locations with a 16-bit segment and a 16-bit offset, which is resolved into a physical address via (segment) × 16 + (offset).[src] Although intended to address only 1 Megabyte (MB) (2 20 bytes) of memory, segment:offset addresses at FFFF:0010 and beyond reference memory beyond 1 MB ( FFFF0 + 0010 = 100000 ).[src] So, on an 80286 and subsequent processors, this mode can actually address the first 65520 bytes of extended memory as part of the 64 KB range starting 16 bytes before the 1 MB mark— FFFF:0000 (0xFFFF0) to FFFF:FFFF (0x10FFEF) .[src] The Intel 8086 and 8088 processors, with only 1 MB of memory and only 20 address lines, wrapped around at the 20th bit, so that address FFFF:0010 was equivalent to 0000:0000 .[src] To allow running existing DOS programs which relied on this feature to access low memory on their newer IBM PC AT computers, IBM added special circuitry on the motherboard to simulate the wrapping around.[src] This circuit was a simple logic gate which could disconnect the microprocessor's 21st addressing line, A20, from the rest of the motherboard.[src] This gate could be controlled, initially through the keyboard controller, to allow running programs which wanted to access the entire RAM.[src] So-called A20 handlers could control the addressing mode dynamically, thereby allowing programs to load themselves into the 1024–1088 KB region and run in real mode.[src] ==Code formatting== Code suitable to be executed in the HMA must either be coded to be position-independent (using only relative references), be compiled to work at the specific addresses in the HMA (typically allowing only one or at most two pieces of code to share the HMA ), or it must be designed to be paragraph boundary or even offset relocatable (with all addresses being fixed up during load).[src] Before code (or data) in the HMA can be addressed by the CPU, the corresponding driver must ensure that the HMA is mapped in.[src] This requires that any such requests are tunneled through a stub remaining in memory outside the HMA, which would invoke the A20 handler in order to (temporarily) enable the A20 gate.[src] If the driver does not exhibit any public data structures and only uses interrupts or calls already controlled by the underlying operating system, it might be possible to register the driver with the system in a way so that the system will take care of A20 itself thereby eliminating the need for a separate stub.[src] ==History== The first user of the HMA among Microsoft products was Windows/286 2.1 in 1988, which introduced the HIMEM.SYS device driver.[src] Starting in 1990 with Digital Research's DR DOS 5.0 (via HIDOS.SYS /BDOS=FFFF and CONFIG.SYS HIDOS=ON ) and since 1991 with MS-DOS 5.0 (via DOS=HIGH ), parts of the operating system's BIOS and kernel could be loaded into the HMA as well, freeing up to 46 KB of conventional memory.[src] Other components, such as device drivers and terminate-and-stay-resident programs (TSRs), could at least be loaded into the upper memory area (UMA), but not into the HMA.[src] Under DOS 5.0 and higher, with DOS=HIGH , the system additionally attempted to move the disk buffers into the HMA.[src] Under DR DOS 6.0 (1991) and higher, the disk buffers (via HIBUFFERS , and later also BUFFERSHIGH ), parts of the command processor COMMAND.COM as well as several special self-relocating drivers like KEYB, NLSFUNC and SHARE could load into the HMA as well (using their /MH option), thereby freeing up even more conventional memory and upper memory for conventional DOS software to work with.[src] TASKMAX seems to have relocated parts of itself into the HMA as well.[src] Novell's NLCACHE from NetWare Lite and early versions of NWCACHE from Personal NetWare and Novell DOS 7 could utilize the HMA as well.[src] Under MS-DOS/PC DOS, a ca.[src] 2 KB shared portion of COMMAND.COM can be relocated into the HMA, as well as DISPLAY.SYS bitmaps for prepared codepages.[src] Under MS-DOS 6.2 (1993) and higher, a ca.[src] 5 KB portion of DBLSPACE.BIN/DRVSPACE.BIN can coexist with DOS in the HMA (unless DBLSPACE/DRVSPACE /NOHMA is invoked).[src] Under PC DOS 7.0 (1995) and 2000, DOSKEY loads into the HMA (if available), and SHARE can be loaded into the HMA as well (unless its /NOHMA option is given).[src] Under MS-DOS 7.0 (1995) to 8.0 (2000), parts of the HMA are also used as a scratchpad to hold a growing data structure recording various properties of the loaded real-mode drivers.[src] ==See also== Expanded memory (EMS) Extended memory (XMS) HMAREA (CONFIG.SYS directive) to specify the HMA segment (PTS-DOS only), similar to the DR DOS HIDOS.SYS /BDOS=xxxx parameter Incomplete address decoding Intra-segment offset relocation Rebasing SHELLHIGH (CONFIG.SYS directive) SIZE=xxxx parameter to override default HMA pre-allocation (DR-DOS 7.02 and higher only) Unreal mode ==Notes== ==References== ==Further reading==[src]

28 sentences · 28 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"High memory area." encyclopegia.org, 2026, https://encyclopegia.org/wiki/high-memory-area. Accessed 30 November 2026.

Chicago

"High memory area." encyclopegia.org. Accessed November 30, 2026. https://encyclopegia.org/wiki/high-memory-area.

APA

encyclopegia.org. (2026). High memory area. Retrieved November 30, 2026, from https://encyclopegia.org/wiki/high-memory-area

Accessed November 30, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Memory Wall

article · references available

European Economic Area

stub · references available

declarative memory

stub · references available

explicit memory

stub · references available

echoic memory

stub · references available

high sand

stub · references available

Yatsushiro City Izumi Junior High School

stub · references available

high-κ dielectric

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1356553752 · 0.5 · snapshot enwiki-001356553752

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.