You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
c-exercises/test-inline-assembly.c

16 lines
202 B
C

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