User Guide

Contents i
24592—Rev. 3.15—November 2009 AMD64 Technology
Contents
Contents ........................................................................ i
Figures........................................................................ ix
Tables........................................................................ xiii
Revision History ................................................................ xv
Preface ....................................................................... xvii
About This Book.................................................................xvii
Audience .......................................................................xvii
Organization ....................................................................xvii
Definitions.....................................................................xviii
Terms and Notation ......................................................xviii
Registers ................................................................xxv
Endian Order ...........................................................xxviii
Related Documents .............................................................xxviii
1 Overview of the AMD64 Architecture ...........................................1
1.1 Introduction ................................................................1
AMD64 Features ............................................................1
Registers...................................................................3
Instruction Set ..............................................................4
Media Instructions ...........................................................4
Floating-Point Instructions ....................................................5
1.2 Modes of Operation ..........................................................6
Long Mode.................................................................6
64-Bit Mode................................................................6
Compatibility Mode..........................................................7
Legacy Mode ...............................................................7
2 Memory Model .............................................................9
2.1 Memory Organization ........................................................9
Virtual Memory .............................................................9
Segment Registers ..........................................................10
Physical Memory ...........................................................11
Memory Management .......................................................11
2.2 Memory Addressing ........................................................14
Byte Ordering .............................................................14
64-Bit Canonical Addresses...................................................15
Effective Addresses .........................................................15
Address-Size Prefix .........................................................17
RIP-Relative Addressing .....................................................18
2.3 Pointers ..................................................................19
Near and Far Pointers .......................................................19
2.4 Stack Operation ............................................................19
2.5 Instruction Pointer ..........................................................20