#include<stdio.h>
int main()
{
int a1 = 10, b1 = 0;
_asm{
mov eax,a1 //将a1值赋给寄存器eax
mov b1,eax //将eax值赋给b1
}
printf("result:%d, %d\n", a1, b1); //result:10 10
return 0;
}
在VC++6.0中嵌入汇编
最新推荐文章于 2024-05-13 06:29:58 发布