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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

24594 Rev. 3.10 February 2005 AMD64 TechnologyContentsFiguresTablesRevision HistoryixxixiiiPrefacexvAbout This Book . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xvAudience . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xvContact Information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xvOrganization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xvDefinitions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xviRelated Documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxvii1 Instruction Formats 11.1 Instruction Byte Order . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11.2 Instruction Prefixes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3Summary of Legacy Prefixes . . . . . . . . . . . . . . . . . . . . . . . . . . . 3Oper<strong>and</strong>-Size Override Prefix . . . . . . . . . . . . . . . . . . . . . . . . . . 5Address-Size Override Prefix . . . . . . . . . . . . . . . . . . . . . . . . . . . 6Segment-Override Prefixes . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9Lock Prefix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10Repeat Prefixes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10REX Prefixes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141.3 Opcode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201.4 ModRM <strong>and</strong> SIB Bytes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201.5 Displacement Bytes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221.6 Immediate Bytes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 231.7 RIP-Relative Addressing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23Encoding. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24REX Prefix <strong>and</strong> RIP-Relative Addressing. . . . . . . . . . . . . . . . 24Address-Size Prefix <strong>and</strong> RIP-Relative Addressing. . . . . . . . . 252 Instruction Overview 272.1 Instruction Subsets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 272.2 Reference-Page Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 282.3 Summary of Registers <strong>and</strong> Data Types . . . . . . . . . . . . . . . . . . 30<strong>General</strong>-<strong>Purpose</strong> <strong>Instructions</strong>. . . . . . . . . . . . . . . . . . . . . . . . . . 30<strong>System</strong> <strong>Instructions</strong>. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33128-Bit Media <strong>Instructions</strong> . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3564-Bit Media <strong>Instructions</strong> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38x87 Floating-Point <strong>Instructions</strong> . . . . . . . . . . . . . . . . . . . . . . . . 402.4 Summary of Exceptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 412.5 Notation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43Contentsiii

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

Saved successfully!

Ooh no, something went wrong!