12.07.2015 Views

Intel® Extended Memory 64 Technology Software Developer's Guide

Intel® Extended Memory 64 Technology Software Developer's Guide

Intel® Extended Memory 64 Technology Software Developer's Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CMPS/CMPSB/CMPSW/CMPSD/CMPSQ—Compare String OperandsOpcode Instruction <strong>64</strong>-Bit Mode Compat/Leg DescriptionModeA6 CMPS m8, m8 Valid Valid For legacy mode, compare byte at addressES:(E)SI; For <strong>64</strong>-bit mode compare byte at address(R)SI. The status flags are set accordingly.A7 CMPS m16, m16 Valid Valid For legacy mode, compare word at addressES:(E)SI; For <strong>64</strong>-bit mode compare word at address(R)SI. The status flags are set accordingly.A7 CMPS m32, m32 Valid Valid For legacy mode, compare dword at addressES:(E)SI; For <strong>64</strong>-bit mode compare dword ataddress (R)SI. The status flags are set accordingly.REX.W + A7 CMPS m<strong>64</strong>, m<strong>64</strong> Valid N.E. Compares quadword at address RSI with quadwordat address RDI and sets the status flags accordinglyA6 CMPSB Valid Valid For legacy mode, compare byte at addressES:(E)SI; For <strong>64</strong>-bit mode compare byte at address(R)SI. The status flags are set accordingly.A7 CMPSW Valid Valid For legacy mode, compare word at addressES:(E)SI; For <strong>64</strong>-bit mode compare word at address(R)SI. The status flags are set accordingly.A7 CMPSD Valid Valid For legacy mode, compare dword at addressES:(E)SI; For <strong>64</strong>-bit mode compare dword ataddress (R)SI. The status flags are set accordingly.REX.W + A7 CMPSD Valid N.E. Compares quadword at address RSI with quadwordat address RDI and sets the status flags accordinglyFlags AffectedThe CF, OF, SF, ZF, AF, and PF flags are set according to the temporary result of the comparison.IA-32e Mode OperationInstruction is promoted to <strong>64</strong>-bits.Default Operation Size is 32 bitsProtected Mode Exceptions#GP(0)#SS(0)#PF(fault-code)#AC(0)If a memory operand effective address is outside the CS, DS, ES, FS, or GS segment limit.If the DS, ES, FS, or GS register contains a null segment selector.If a memory operand effective address is outside the SS segment limit.If a page fault occurs.If alignment checking is enabled and an unaligned memory reference is made while thecurrent privilege level is 3.Real-Address Mode Exceptions#GP#SSIf a memory operand effective address is outside the CS, DS, ES, FS, or GS segment limit.If a memory operand effective address is outside the SS segment limit.Vol. 1 2-75

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

Saved successfully!

Ooh no, something went wrong!