assembly - How to move value from the stack to ST(0)? -
I believe the following code is the most efficient way to move the value of ST (0) from the stack:
.data var dd 4.2 tmp dd? .code MOV eX, pushing ERAD; Above the stack is a value; Move it to ST (0) Pop EAX mov tmp, EAX fld tmp
Is Temporary Variable Really Needed? Also, is there an easy way to get the value of ST (0) from stack?
Update: In the above example, I do not have integers around the moving-point .
fld dword ptr [esp]; D 9 04 24
Comments
Post a Comment