I have a simple assembly function called from a c program and I have to use a instruction (FIDIV
) that needs a memory operand.
Is it safe to move the value to [esp - 2]
and use it in the next instruction or is it never safe to use the stack that way?
I know there are many workarounds, and I really don't need this anymore, so now it's just curiosity.