windows 汇编

int main()
{
int a = 1;
int c = 2;
int b;
__asm
{
MOV EAX, a;
MOV EBX, c;
ADD EAX, EBX;
MOV b, EAX;
}
cout << "b = " << b << endl;
cout << "a = " << a << endl;
cout << "c = " << c << endl;
}

posted @ 2019-07-18 20:30  MoonXu  阅读(310)  评论(0编辑  收藏  举报