# High memory area: Wikis

Note: Many of our articles have direct quotes from sources you can cite, within the Wikipedia article! This article doesn't yet, but we're working on it! See more info or our list of citable articles.

# Encyclopedia

### From Wikipedia, the free encyclopedia

The high memory area is highlighted.

The high memory area (HMA) is the RAM area consisting of the first 64 kibibytes (KiB), minus 16 bytes, of the extended memory on an IBM PC or compatible microcomputer.

In real mode, the segmentation architecture of the Intel 80286 and subsequent processors identifies memory locations with 16-bit segment and 16-bit offset, which is resolved into a physical address via $(\textrm{segment}) \times 16 + (\textrm{offset})$. Although intended to address only 1 mebibyte (220 bytes) of memory, segment:offset addresses at FFFF:0010 and beyond reference memory beyond 1 mebibyte (FFFF0 + 0010 = 100000). So this syntax can actually address 64 KiB minus 16 bytes of memory from FFFF:0000 to FFFF:FFFF. The Intel 8086 and Intel 8088 processors, unable to handle more than 1 mebibyte of memory, wrapped around at the 20th bit, so that address FFFF:0010 was equivalent to 0000:0000.

In order to allow running existing MS-DOS programs which relied on this feature on their newer IBM PC AT computers, IBM added special circuitry on the motherboard to simulate the wrapping around. This circuit was a simple logic gate which could disconnect the microprocessor's 21st addressing line, A20, from the rest of the motherboard. This gate could be controlled, initially through the keyboard controller, to allow running programs which wanted to access the entire RAM.

So-called A20 handlers could control the addressing mode dynamically, thereby allowing programs to load themselves into the 1024–1088 KiB region and run in real mode. The first user of the HMA among Microsoft products was Windows/286 2.1 in 1988, which introduced the HIMEM.SYS device driver. Starting with versions 5.0 of DR-DOS (1990) and of MS-DOS (1991), parts of the operating system could be loaded into HMA as well, freeing up to 46 KB of conventional memory. Other components, such as device drivers and TSRs, could be loaded into the Upper Memory Area.

## See also

This article was originally based on material from the Free On-line Dictionary of Computing, which is licensed under the GFDL.

 Got something to say? Make a comment. Your name Your email address Message