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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

24594 Rev. 3.10 February 2005 AMD64 TechnologyCLDClear Direction FlagClears the direction flag (DF) in the rFLAGS register to zero. If the DF flag is 0, eachiteration of a string instruction increments the data pointer (index registers rSI orrDI). If the DF flag is 1, the string instruction decrements the pointer. Use the CLDinstruction before a string instruction to make the data pointer increment.Mnemonic Opcode DescriptionCLD FC Clear the direction flag (DF) to zero.Related <strong>Instructions</strong>CMPSx, INSx, LODSx, MOVSx, OUTSx, SCASx, STD, STOSxrFLAGS AffectedID VIP VIF AC VM RF NT IOPL OF DF IF TF SF ZF AF PF CF21 20 19 18 17 16 14 13–12 11 10 9 8 7 6 4 2 0ExceptionsNoneNote: Bits 31–22, 15, 5, 3, <strong>and</strong> 1 are reserved. A flag set to 1 or cleared to 0 is M (modified). Unaffected flags are blank. Undefinedflags are U.0CLD 99

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

Saved successfully!

Ooh no, something went wrong!