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.

AMD64 Technology 24594 Rev. 3.10 February 2005ORLogical ORPerforms a logical OR on the bits in a register, memory location, or immediate value(second oper<strong>and</strong>) <strong>and</strong> a register or memory location (first oper<strong>and</strong>) <strong>and</strong> stores theresult in the first oper<strong>and</strong> location. The two oper<strong>and</strong>s cannot both be memorylocations.If both corresponding bits are 0, the corresponding bit of the result is 0; otherwise, thecorresponding result bit is 1.The forms of the OR instruction that write to memory support the LOCK prefix. Fordetails about the LOCK prefix, see “Lock Prefix” on page 10.Mnemonic Opcode DescriptionOR AL, imm8 0C ib OR the contents of AL with an immediate 8-bit value.OR AX, imm16 0D iw OR the contents of AX with an immediate 16-bit value.OR EAX, imm32 0D id OR the contents of EAX with an immediate 32-bit value.OR RAX, imm320D idOR reg/mem8, imm880 /1 ibOR reg/mem16, imm1681 /1 iwOR reg/mem32, imm3281 /1 idOR reg/mem64, imm3281 /1 idOR reg/mem16, imm883 /1 ibOR reg/mem32, imm883 /1 ibOR reg/mem64, imm883 /1 ibOR reg/mem8, reg8 08 /rOR the contents of RAX with a sign-extended immediate 32-bitvalue.OR the contents of an 8-bit register or memory oper<strong>and</strong> <strong>and</strong> animmediate 8-bit value.OR the contents of a 16-bit register or memory oper<strong>and</strong> <strong>and</strong> animmediate 16-bit value.OR the contents of a 32-bit register or memory oper<strong>and</strong> <strong>and</strong> animmediate 32-bit value.OR the contents of a 64-bit register or memory oper<strong>and</strong> <strong>and</strong>sign-extended immediate 32-bit value.OR the contents of a 16-bit register or memory oper<strong>and</strong> <strong>and</strong> asign-extended immediate 8-bit value.OR the contents of a 32-bit register or memory oper<strong>and</strong> <strong>and</strong> asign-extended immediate 8-bit value.OR the contents of a 64-bit register or memory oper<strong>and</strong> <strong>and</strong> asign-extended immediate 8-bit value.OR the contents of an 8-bit register or memory oper<strong>and</strong> with thecontents of an 8-bit register.216 OR

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

Saved successfully!

Ooh no, something went wrong!