阅读背景:

如何将寄存器的值存储到指针指向的内存位置中?

来源:互联网 

I have the following code:

我有以下代码:

void * storage = malloc( 4 );

__asm
{
    //assume the integer 1 is stored in eax
    mov eax, storage  //I've tried *storage as well but apparently it's illegal syntax
}
/* other code here */
free(storage);
void * s



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: