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 Technology1.2.2 Oper<strong>and</strong>-SizeOverride PrefixThe default oper<strong>and</strong> size for an instruction is determined by acombination of its opcode, the D (default) bit in the currentcode-segment descriptor, <strong>and</strong> the current operating mode, asshown in Table 1-2. The oper<strong>and</strong>-size override prefix (66h)selects the non-default oper<strong>and</strong> size. The prefix can be usedwith any general-purpose instruction that accesses non-fixedsizeoper<strong>and</strong>s in memory or general-purpose registers (GPRs),<strong>and</strong> it can also be used with the x87 FLDENV, FNSTENV,FNSAVE, <strong>and</strong> FRSTOR instructions.In 64-bit mode, the prefix allows mixing of 16-bit, 32-bit, <strong>and</strong> 64-bit data on an instruction-by-instruction basis. In compatibility<strong>and</strong> legacy modes, the prefix allows mixing of 16-bit <strong>and</strong> 32-bitoper<strong>and</strong>s on an instruction-by-instruction basis.Table 1-2.Oper<strong>and</strong>-Size OverridesLongModeOperating Mode64-BitModeCompatibilityModeLegacy Mode(Protected, Virtual-8086,or Real Mode)DefaultOper<strong>and</strong>Size (Bits)EffectiveOper<strong>and</strong>Size(Bits)Instruction Prefix 166h REX.W 332 2 32 no no64 don’t care yes3216321616 yes no32 no16 yes32 yes16 no32 no16 yes32 yes16 noNotApplicableNote:1. A “no’ indicates that the default oper<strong>and</strong> size is used.2. This is the typical default, although some instructions default to other oper<strong>and</strong> sizes. SeeAppendix B, “<strong>General</strong>-<strong>Purpose</strong> <strong>Instructions</strong> in 64-Bit Mode,” for details.3. See “REX Prefixes” on page 14.Chapter 1: Instruction Formats 5

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

Saved successfully!

Ooh no, something went wrong!