#include void main() { int x = 10, y; asm ( "movl %1, %%eax;" "movl %%eax, %0;" :"=r"(y) /* y is output operand */ :"r"(x) /* x is input operand */ :"%eax"); /* %eax is clobbered register */ printf("eax tartalma%d\n", y); }