In inline asm within C, on x86/x86-64, is the value of the direction flag guaranteed to be cld?

74 Views Asked by At

In inline asm within C, on x86/x86-64, is the value of the direction flag guaranteed to be cld always or do I have to set the state to cld every time I need it? And if I execute a cld do I have to preserve the previous state for any caller of the current routine who might have the state currently set to direction=downwards when they called me?

0

There are 0 best solutions below