我试图assembly code用AT&T syntax.
这是一个片段:
"mov %eax, %ebx; "\
"mov %eax, %ecx;"\
"fxch %st(1);"\
这是我从中了解到的。
mov副本(我是正确的吗?还是它会移动?)数据source register从destination register
我们将数据从one:注册表复制eax到ebx.
同样,我们将数据从注册表复制eax到ecx.
但是,我无法理解的是以下内容。如何fxch工作?这是一个给出示例的链接。
fxch st(2)
fsqrt
fxch st(2)
它说上面的代码采用了sqrtof st(2)。如果我错了,请纠正我。它将与交换top of the stack,st(2)然后将sqrt of what?
我不明白这一点。
你能帮帮我吗?这在我的情况和上述情况下如何工作?