[英]Getting return value of a function called with assembly
I am using Microsoft Visual C++ 2010. 我正在使用Microsoft Visual C ++ 2010。
If I have a function like this: 如果我有这样的功能:
const char* blah(void);
and I want to call it like this: 我想这样称呼它:
__asm {
call blah;
...
}
How do I get the return value of the function in the assembly? 如何在程序集中获取函数的返回值?
返回值在EAX寄存器中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.