#include int main() { int i = 0xffff; asm("movl $23, %0" : "=r" (i) /* output */ /* : no input */ /* : no clobbered */ ); printf("i = %d\n", i); return 0; }