IA-32 Assembly Language Reference Manual

Clear Direction Flag (cld)

cld
Operation

0 -> DF

Description

Clears the direction flag; affects no other flags or registers. Causes all subsequent string operations to increment the index registers, (E)SI and/or (E)DI, used during the operation.

Example

Clear the direction flag:

cld