ddl@husc6.harvard.edu (Dan Lanciani) (08/26/90)
The Microsoft C compiler assumes (assumed?) that the direction flag is clear at all times. Functions declared with the interrupt keyword do an explicit cld as part of the prolog. How then might one write DLL functions in C without imposing the clear-direction-flag requirement on all callers? Calling a trivial "cld" function at each entry is possible, but it seems a shame to have to resort to something like that when most other problems can be handled by the compiler. (E.g., _saveregs, -Aw/_loadds, and so forth.) Does anyone know exactly when the code depends on a clear direction flag? Dan Lanciani ddl@harvard.*