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.

AMD64 Technology 24594 Rev. 3.10 February 20052.2 Reference-Page Format• “x87 Floating-Point Instruction Reference” in <strong>Volume</strong> 5—Thex87 instructions are used in legacy floating-pointapplications. Most of these instructions load, store, oroperate on data located in the x87 ST(0)–ST(7) stackregisters (the FPR0–FPR7 physical registers). Theremaining instructions within this category are used tomanage the x87 floating-point environment.The description of each instruction covers its behavior in alloperating modes, including legacy mode (real, virtual-8086, <strong>and</strong>protected modes) <strong>and</strong> long mode (compatibility <strong>and</strong> 64-bitmodes). Details of certain kinds of complex behavior—such ascontrol-flow changes in CALL, INT, or FXSAVE instructions—have cross-references in the instruction-detail pages to detaileddescriptions in volumes 1 <strong>and</strong> 2.Two instructions—CMPSD <strong>and</strong> MOVSD—use the samemnemonic for different instructions. Assemblers c<strong>and</strong>istinguish them on the basis of the number <strong>and</strong> type ofoper<strong>and</strong>s with which they are used.Figure 2-1 on page 29 shows the format of an instruction-detailpage. The instruction mnemonic is shown in bold at the top-left,along with its name. In this example, POPFD is the mnemonic<strong>and</strong> POP to EFLAGS Doubleword is the name. Next, there is ageneral description of the instruction’s operation. Manydescriptions have cross-references to more detail in other partsof the manual.Beneath the general description, the mnemonic is shown again,together with the related opcode(s) <strong>and</strong> a description summary.Related instructions are listed below this, followed by a tableshowing the flags that the instruction can affect. Finally, eachinstruction has a summary of the possible exceptions that canoccur when executing the instruction. The columns labeled“Real” <strong>and</strong> “Virtual-8086” apply only to execution in legacymode. The column labeled “Protected” applies both to legacymode <strong>and</strong> long mode, because long mode is a superset of legacyprotected mode.The 128-bit <strong>and</strong> 64-bit media instructions also have diagramsillustrating the operation. A few instructions have examples orpseudocode describing the action.28 Chapter 2: Instruction Overview

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

Saved successfully!

Ooh no, something went wrong!