1

我试图了解这些操作是如何工作的......

例如,如果我有一个包含值的堆栈

5.0 , 2.0 , 3.0 , 8.0
ST0 , ST1 , ST2 , ST3

这些操作的结果是什么?

1, fadd 2, fmul 3, fst ST1

我发现 fadd 和 fmul 采用 ST0 和 ST1 并执行操作......所以结果是

1, 7.0 , 3.0 , 8.0 
2, 10.0 , 3.0 , 8.0

我对吗 ?:)

我也不知道“fst”在做什么以及它是如何工作的......所以如果有人可以在这个例子中为我解释它会非常有帮助......

非常感谢您

4

2 回答 2

1

You should read the intel instruction set reference to understand what each instruction does. In addition I recommend Simply FPU because it's an awesome tutorial.

Also, you could just run the thing in a debugger and see what's happening for yourself:

于 2013-05-21T00:01:27.160 回答
0

我不知道 no-argumentfadd或 no-argument fmul

fst ST1复制ST0ST1.

于 2013-05-20T21:56:45.810 回答