Volume 3: General-Purpose and System Instructions - Stanford ...
Volume 3: General-Purpose and System Instructions - Stanford ... Volume 3: General-Purpose and System Instructions - Stanford ...
AMD64 Technology 24594—Rev. 3.10—February 2005xivRevision History
24594 Rev. 3.10 February 2005 AMD64 TechnologyPrefaceAbout This BookThis book is part of a multivolume work entitled the AMD64Architecture Programmer’s Manual. This table lists each volumeand its order number.TitleOrder No.Volume 1, Application Programming 24592Volume 2, System Programming 24593Volume 3, General-Purpose and System Instructions 24594Volume 4, 128-Bit Media Instructions 26568Volume 5, 64-Bit Media and x87 Floating-Point Instructions 26569AudienceContact InformationOrganizationThis volume (Volume 3) is intended for all programmers writingapplication or system software for a processor that implementsthe AMD64 architecture. Descriptions of general-purposeinstructions assume an understanding of the application-levelprogramming topics described in Volume 1. Descriptions ofsystem instructions assume an understanding of the systemlevelprogramming topics described in Volume 2.To submit questions or comments concerning this document,contact our technical documentation staff atAMD64.Feedback@amd.com.Volumes 3, 4, and 5 describe the AMD64 architecture’sinstruction set in detail. Together, they cover each instruction’smnemonic syntax, opcodes, functions, affected flags, andpossible exceptions.The AMD64 instruction set is divided into five subsets:Prefacexv
- Page 2 and 3: © 2002, 2003, 2004, 2005 Advanced
- Page 4 and 5: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 6 and 7: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 8: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 12 and 13: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 16 and 17: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 18 and 19: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 20 and 21: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 22 and 23: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 24 and 25: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 26 and 27: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 28 and 29: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 30 and 31: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 32 and 33: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 34 and 35: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 36 and 37: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 38 and 39: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 40 and 41: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 42 and 43: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 44 and 45: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 46 and 47: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 48 and 49: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 50 and 51: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 52 and 53: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 54 and 55: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 56 and 57: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 58 and 59: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 60 and 61: AMD64 Technology 24594 Rev. 3.10 Fe
- Page 62 and 63: AMD64 Technology 24594 Rev. 3.10 Fe
24594 Rev. 3.10 February 2005 AMD64 TechnologyPrefaceAbout This BookThis book is part of a multivolume work entitled the AMD64Architecture Programmer’s Manual. This table lists each volume<strong>and</strong> its order number.TitleOrder No.<strong>Volume</strong> 1, Application Programming 24592<strong>Volume</strong> 2, <strong>System</strong> Programming 24593<strong>Volume</strong> 3, <strong>General</strong>-<strong>Purpose</strong> <strong>and</strong> <strong>System</strong> <strong>Instructions</strong> 24594<strong>Volume</strong> 4, 128-Bit Media <strong>Instructions</strong> 26568<strong>Volume</strong> 5, 64-Bit Media <strong>and</strong> x87 Floating-Point <strong>Instructions</strong> 26569AudienceContact InformationOrganizationThis volume (<strong>Volume</strong> 3) is intended for all programmers writingapplication or system software for a processor that implementsthe AMD64 architecture. Descriptions of general-purposeinstructions assume an underst<strong>and</strong>ing of the application-levelprogramming topics described in <strong>Volume</strong> 1. Descriptions ofsystem instructions assume an underst<strong>and</strong>ing of the systemlevelprogramming topics described in <strong>Volume</strong> 2.To submit questions or comments concerning this document,contact our technical documentation staff atAMD64.Feedback@amd.com.<strong>Volume</strong>s 3, 4, <strong>and</strong> 5 describe the AMD64 architecture’sinstruction set in detail. Together, they cover each instruction’smnemonic syntax, opcodes, functions, affected flags, <strong>and</strong>possible exceptions.The AMD64 instruction set is divided into five subsets:Prefacexv