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.

AMD64 Technology 24594 Rev. 3.10 February 2005• rel16off—Signed 16-bit offset relative to the instructionpointer.• rel32off—Signed 32-bit offset relative to the instructionpointer.• segReg or sReg—Word (16-bit) oper<strong>and</strong> in a segment register.• ST(0)—x87 stack register 0.• ST(i)—x87 stack register i, where i is between 0 <strong>and</strong> 7.• xmm—Double quadword (128-bit) oper<strong>and</strong> in an XMMregister.• xmm1—Double quadword (128-bit) oper<strong>and</strong> in an XMMregister, specified as the left-most (first) oper<strong>and</strong> in theinstruction syntax.• xmm2—Double quadword (128-bit) oper<strong>and</strong> in an XMMregister, specified as the right-most (second) oper<strong>and</strong> in theinstruction syntax.• xmm/mem64—Quadword (64-bit) oper<strong>and</strong> in a 128-bit XMMregister or memory.• xmm/mem128—Double quadword (128-bit) oper<strong>and</strong> in anXMM register or memory.• xmm1/mem128—Double quadword (128-bit) oper<strong>and</strong> in anXMM register or memory, specified as the left-most (first)oper<strong>and</strong> in the instruction syntax.• xmm2/mem128—Double quadword (128-bit) oper<strong>and</strong> in anXMM register or memory, specified as the right-most(second) oper<strong>and</strong> in the instruction syntax.2.5.2 Opcode Syntax In addition to the notation shown above in “Mnemonic Syntax”on page 43, the following notation indicates the size <strong>and</strong> type ofoper<strong>and</strong>s in the syntax of an instruction opcode:• /digit—Indicates that the ModRM byte specifies only oneregister or memory (r/m) oper<strong>and</strong>. The digit is specified bythe ModRM reg field <strong>and</strong> is used as an instruction-opcodeextension. Valid digit values range from 0 to 7.• /r—Indicates that the ModRM byte specifies both a registeroper<strong>and</strong> <strong>and</strong> a reg/mem (register or memory) oper<strong>and</strong>.• cb, cw, cd, cp—Specifies a code-offset value <strong>and</strong> possibly anew code-segment register value. The value following theopcode is either one byte (cb), two bytes (cw), four bytes(cd), or six bytes (cp).46 Chapter 2: Instruction Overview

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

Saved successfully!

Ooh no, something went wrong!