Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- TASM 2.x / MASM 6.x Assembly Language - <b>cmpsd compare string doubleword (386) flags: o d i t s z a p c</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
CMPSD             Compare String Doubleword (386)    Flags: O D I T S Z A P C
                                                            *       * * * * *
CMPSD

           Logic:          CMP DS:SI, ES:DI
                           if DF = 0
                               SI . SI + 4
                               DI . DI + 4
                           else
                               SI . SI - 4
                               DI . DI - 4

     This instruction compares the doubleword at DS:SI to the one at ES:DI.
     If the direction flag is set, SI and DI are decremented by 4; otherwise,
     SI and DI are incremented by 4.

  --------------------------------------------------------------------------
   Operands                   Clocks   Transfers  Bytes  Example
   CMPSD                                   -        1    CMPSD
  --------------------------------------------------------------------------

        Note:          This instruction is usually used with a REP prefix,
                       which allows you to compare a number of doublewords in
                       a string.

See Also: CMPSB CMPSW REP

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson