#include
int main()
{
void swap(int x,int y);
static int a;
static int b;
asm("addl %3,%2"
"mov %2,%eax"
"sbb %3,%eax"
"mov %eax,%3"
"sbb %3,%2"
"mov %2,%0"
"mov %3,%1":"=r"(a),"=r"(b):"r"(a),"r"(b):"%eax");
printf("%d%d",a,b);
getch();
}
void swap(int x,int y)
{
x+=y;
y=x-y;
x-=y;
static int a=x,b=y;
}
//operand number missing after %-letter错误。。