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

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -