summaryrefslogtreecommitdiff
path: root/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test.c')
-rw-r--r--test.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/test.c b/test.c
index b8a6d61..d21e84a 100644
--- a/test.c
+++ b/test.c
@@ -1,10 +1,10 @@
-#include <stdio.h>
-#include <stdlib.h>
+#include<stdio.h>
-int my_number;
-void entry() {
- my_number = 137;
- printf("%d\n",my_number);
- exit(0);
-
+void entry(void) {
+ printf("hi\n");
+ __asm__ (
+ "mov $1, %eax\n"
+ "mov $0, %ebx\n"
+ "int $0x80\n"
+ );
}