test inline assembly
parent
f1d1727bf6
commit
fcdc22b861
@ -0,0 +1,13 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main() {
|
||||
int i = 0xffff;
|
||||
|
||||
asm("movl $23, %0"
|
||||
: "=r" (i) /* output */
|
||||
/* : no input */
|
||||
/* : no clobbered */
|
||||
);
|
||||
|
||||
printf("i = %d\n", i);
|
||||
}
|
Loading…
Reference in New Issue