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 Technology2.5 Notation2.5.1 MnemonicSyntaxEach instruction has a syntax that includes the mnemonic <strong>and</strong>any oper<strong>and</strong>s that the instruction can take. Figure 2-14 showsan example of a syntax in which the instruction takes twooper<strong>and</strong>s. In most instructions that take two oper<strong>and</strong>s, the first(left-most) oper<strong>and</strong> is both a source oper<strong>and</strong> (the first sourceoper<strong>and</strong>) <strong>and</strong> the destination oper<strong>and</strong>. The second (right-most)oper<strong>and</strong> serves only as a source, not a destination.ADDPD xmm1, xmm2/mem128MnemonicFirst Source Oper<strong>and</strong><strong>and</strong> Destination Oper<strong>and</strong>Second Source Oper<strong>and</strong>513-322.epsFigure 2-14.Syntax for Typical Two-Oper<strong>and</strong> InstructionThe following notation is used to denote the size <strong>and</strong> type ofsource <strong>and</strong> destination oper<strong>and</strong>s:• cReg—Control register.• dReg—Debug register.• imm8—Byte (8-bit) immediate.• imm16—Word (16-bit) immediate.• imm16/32—Word (16-bit) or doubleword (32-bit) immediate.• imm32—Doubleword (32-bit) immediate.• imm32/64—Doubleword (32-bit) or quadword (64-bit)immediate.• imm64—Quadword (64-bit) immediate.• mem—An oper<strong>and</strong> of unspecified size in memory.• mem8—Byte (8-bit) oper<strong>and</strong> in memory.• mem16—Word (16-bit) oper<strong>and</strong> in memory.• mem16/32—Word (16-bit) or doubleword (32-bit) oper<strong>and</strong> inmemory.• mem32—Doubleword (32-bit) oper<strong>and</strong> in memory.Chapter 2: Instruction Overview 43

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

Saved successfully!

Ooh no, something went wrong!