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 2005Mnemonic Opcode DescriptionCMP reg/mem64, imm883 /7 ibCMP reg/mem8, reg8 38 /rCMP reg/mem16, reg16 39 /rCMP reg/mem32, reg32 39 /rCMP reg/mem64, reg64 39 /rCMP reg8, reg/mem8 3A /rCMP reg16, reg/mem16 3B /rCMP reg32, reg/mem32 3B /rCMP reg64, reg/mem64 3B /rCompare an 8-bit signed immediate value with the contents of a64-bit register or memory oper<strong>and</strong>.Compare the contents of an 8-bit register or memory oper<strong>and</strong>with the contents of an 8-bit register.Compare the contents of a 16-bit register or memory oper<strong>and</strong>with the contents of a 16-bit register.Compare the contents of a 32-bit register or memory oper<strong>and</strong>with the contents of a 32-bit register.Compare the contents of a 64-bit register or memory oper<strong>and</strong>with the contents of a 64-bit register.Compare the contents of an 8-bit register with the contents of an8-bit register or memory oper<strong>and</strong>.Compare the contents of a 16-bit register with the contents of a16-bit register or memory oper<strong>and</strong>.Compare the contents of a 32-bit register with the contents of a32-bit register or memory oper<strong>and</strong>.Compare the contents of a 64-bit register with the contents of a64-bit register or memory oper<strong>and</strong>.When interpreting oper<strong>and</strong>s as unsigned, flag settings are as follows:Oper<strong>and</strong>s CF ZFdest > source 0 0dest = source 0 1dest < source 1 0When interpreting oper<strong>and</strong>s as signed, flag settings are as follows:Oper<strong>and</strong>s OF ZFdest > source SF 0dest = source 0 1dest < source NOT SF 0108 CMP

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

Saved successfully!

Ooh no, something went wrong!