The Full Wiki

More info on Direction flag

Direction flag: Wikis

Advertisements

Note: Many of our articles have direct quotes from sources you can cite, within the Wikipedia article! This article doesn't yet, but we're working on it! See more info or our list of citable articles.

Encyclopedia

From Wikipedia, the free encyclopedia

The Direction Flag is a flag stored in the FLAGS register on all x86 compatible CPUs. It is bit 10. When it is set to 0, it means that instructions, that autoincrement the source index and destination index (like movs) will increase both of them. In case it is set to 1, the instruction will decrease them. This flag is used to determine the direction (forward or backward) in which several bytes of data will be copied from one place in the memory, to another. The direction is important mainly when the original data position in memory and the target data position overlap.


Advertisements






Got something to say? Make a comment.
Your name
Your email address
Message