Home Page >  News List >> Tech >> Tech

Compatibility issues with A20 address lines

Tech 2023-05-17 12:31:51 Source: Network
AD

In early computers, there were only 20 address buses, each of which could address 1MB of memory space. In some newer computers, the address bus has grown to 32, allowing for addressing more memory

In early computers, there were only 20 address buses, each of which could address 1MB of memory space. In some newer computers, the address bus has grown to 32, allowing for addressing more memory. However, in order to be compatible with older software, some modern computers still turn off the A20 address bus during startup in order to access older memory addresses. Turning on the A20 address bus means that the computer will be able to address more memory.

In real mode, memory access takes the form of "segment base address: intra segment offset address", where the segment base address is multiplied by 16 and then the intra segment offset address is added. In real mode, registers are all 16 bits. If both the segment base address and the offset address within the segment are the maximum values of 16 bits, which is 0xffff: 0xffff, the maximum address is oxffff0+0xffff, which is OxlOFF. Due to the address line being 20 bits in real mode, the maximum address space is 1MB, which is 0x00000~0xfffff. The part exceeding 1MB of memory is logically normal, but there is no corresponding part in physical memory. In order to make the "segment base address: intra segment offset address" strategy continue to be available, the CPU adopts the approach of automatically wrapping the part exceeding 1MB to the 0 address, and continuing to map from the 0 address is equivalent to moduling the address to 1MB. The excess memory exceeding 1MB is called the high-end memory area HMA.


Disclaimer: The content of this article is sourced from the internet. The copyright of the text, images, and other materials belongs to the original author. The platform reprints the materials for the purpose of conveying more information. The content of the article is for reference and learning only, and should not be used for commercial purposes. If it infringes on your legitimate rights and interests, please contact us promptly and we will handle it as soon as possible! We respect copyright and are committed to protecting it. Thank you for sharing.(Email:[email protected])

Mobile advertising space rental

Tag: Compatibility issues with A20 address lines

Unite directoryCopyright @ 2011-2024 All Rights Reserved. Copyright Webmaster Search Directory System