What is the purpose of Direction Flag?

0
1
digitalample eye
We can simply say that the direction flag control the direction of the repeated string instruction on Microprocessor. 

DF = Direction Flag = String Direction Flag

The direction flag is a flag that controls the left-to-right or right-to-left direction of string processing.

The direction flag is used to determine the direction which may be forward or backward in which several bytes of data will be copied from one place to another place in the memory.

The direction is  more important mainly when the original data position in memory and the target data position overlap.

LEAVE A REPLY

Please enter your comment!
Please enter your name here