我正在将应用程序从x86移植到x64。我正在使用Visual Studio 2010.该应用程序包含几行内联汇编程序,并且在编译x64时不支持__asm关键字。编写该申请的人不再与该公司合作。
// Esp contains the bottom of the stack, or at least the bottom of
// the currently used area.
DWORD* pStackTop;
__asm
{
// Load the top (highest address) of the stack from the
// thread information block. It will be found there in
// Win9x and Windows NT.
mov eax, fs:[4]
mov pStackTop, eax
}
有人能告诉我如何为x64做这个吗?
感谢。