#include<stdio.h>#include<stdlib.h>intmain(){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");return0;}
下面的程序实现了三个数字的求和程序。#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 }