下面的程序實現了三個數字的求和程序。
#include <stdio.h>
#include<stdlib.h>
int main()
{
int a = 1, b = 2, c = 3;
__asm//這裏是雙下劃綫
{
push eax
mov eax, a
add eax, b
add eax, c
mov a, eax
pop eax
}
printf("%d", a);
system("pause");
return 0;
}