The Full Wiki

More info on Direction flag

Direction flag: Wikis


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.


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.


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