summaryrefslogtreecommitdiff
path: root/test.c
blob: e2db834bebd95b779ca4b434c50ab231e3368ac5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <stdio.h>
int x;
void main() {
	x = 123;
	printf("hi");
	__asm__ ("movl $1, %%eax\n"
		"movl %0, %%ebx\n"
	    "int $0x80\n"
	    :
	    : "r" (x) : "ebx", "eax");
	    
}