#include int main(){ int x = 700, y = 2, c = 0; asm( "mov %[dreg], %%eax \n" "add %%eax, %[xreg] \n" "add %[xreg], %[yreg] \n" : [yreg]"=r"(c) // Output operands : [xreg]"r"(x), "[yreg]"(y), [dreg]"r"(c) // Input operands : "eax" // Clobbers ); printf("armadillo c = %d\n", c); return 0; }