13.07.2015 Views

Volume 3: General-Purpose and System Instructions - Stanford ...

Volume 3: General-Purpose and System Instructions - Stanford ...

Volume 3: General-Purpose and System Instructions - Stanford ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

24594 Rev. 3.10 February 2005 AMD64 Technologythe size of the RCX register for instructions that use RCXimplicitly.For instructions that implicitly access the stack segment (SS),the address size for stack accesses is determined by the D(default) bit in the stack-segment descriptor. In 64-bit mode,the D bit is ignored, <strong>and</strong> all stack references have a 64-bitaddress size. However, if an instruction accesses both stack <strong>and</strong>non-stack memory, the address size of the non-stack access isdetermined as shown in Table 1-3.Table 1-3.Address-Size OverridesLong ModeOperating Mode64-BitModeCompatibilityModeLegacy Mode(Protected, Virtual-8086, or RealMode)DefaultAddress Size(Bits)6432163216EffectiveAddress Size(Bits)Address-Size Prefix(67h) 1Required?64 no32 yes32 no16 yes32 yes16 no32 no16 yes32 yes16 noNote:1. A “no” indicates that the default address size is used.As Table 1-3 shows, the default address size is 64 bits in 64-bitmode. The size can be overridden to 32 bits, but 16-bitaddresses are not supported in 64-bit mode. In compatibility<strong>and</strong> legacy modes, the default address size is 16 bits or 32 bits,depending on the operating mode (see “Processor Initialization<strong>and</strong> Long-Mode Activation” in <strong>Volume</strong> 2 for details). In thesemodes, the address-size prefix selects the non-default size, butthe 64-bit address size is not available.Chapter 1: Instruction Formats 7

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!