W
W
webmaster22017-06-16 10:09:11
assembler
webmaster2, 2017-06-16 10:09:11

How to pop a value off the stack and assign it to a variable in TASM?

Hello.
I'm solving a small problem on TASM using fpu.
Question: how to pop a value from the stack ST and assign it, for example, to a variable of type DD?
Thanks in advance for your reply!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2017-06-16
@webartisan2

Just take an online compiler , drive the necessary equivalent code in C or C ++ into it, if you know at least the basics of one of them, it will give assembler code, highlighting the lines with the appropriate color. So it will be easier to understand.
In my example, you can see, as Anton already said , that the instruction is used for this fstp. You can put the cursor on it and press Ctrl + F8 - an excellent detailed description of the command will appear.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question