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>scasd scan 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]
SCASD             Scan String Doubleword (386)       Flags: O D I T S Z A P C
                                                            *       * * * * *
SCASD

       Logic:              CMP EAX, DWORD PTR ES:DI
                           if DF = 0 then
                               DI . DI + 4
                           else
                               DI . DI - 4

     This instruction compares the value in EAX to the doubleword at
     location ES:DI. The flags are set accordingly. If the direction flag
     is set, DI is decremented by 4. If it is not set, EDI is incremented
     by 4.

  --------------------------------------------------------------------------
   Operands                   Clocks   Transfers  Bytes  Example
   SCASD                      7 (386)      -        1    SCASD
  --------------------------------------------------------------------------

        Note:          This instruction is usually used with a REP
                       prefix. Load CX with the number of times to repeat
                       the instruction. You can only use SCASD on the 80386.

See Also: CMP CMPS CMPSB CMPSW

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