Addressing above 1 Megabyte Under MS-DOS

Last reviewed: January 6, 1995
Article ID: Q39370
The information in this article applies to:
  • Microsoft Macro Assembler for MS-DOS, versions 5.0, 5.1a, 6.0, 6.0a, and 6.0b

When a 80286 or higher processor is in real mode, addressing is done using a 16-bit segment and 16-bit offset. Therefore, it is only possible to address up to 1 megabyte of memory. To address memory above 1 meg under MS-DOS, you have to put the processor into protected mode by using IBM ROM BIOS Interupt 15 Function 89h. Addressing will be done using a selector into a descriptor table.

For more information about this interrupt, call IBM hardware support, (800) 426-2468. If ROM BIOS routines are not operating as expected, you may need to contact the company that supplied the BIOS in your particular machine.

For more information about protected mode, selectors and descriptor tables, see the Intel guides for the 80286, 80386, or 80486 or "Microsoft's 80386/80486 Programming Guide".


Additional reference words: 5.00 5.10a 6.00 6.00a 6.00b
KBCategory: kbprg
KBSubCategory: MASMLngIss


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: January 6, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.