diff options
Diffstat (limited to 'user1.c')
-rw-r--r-- | user1.c | 19 |
1 files changed, 18 insertions, 1 deletions
@@ -5,9 +5,26 @@ fork() asm("int $48"); } +void +cons_putc(int c) +{ + asm("mov $4, %eax"); + asm("int $48"); +} + +void +puts(char *s) +{ + int i; + + for(i = 0; s[i]; i++) + cons_putc(s[i]); +} + main() { - fork(); + // fork(); + puts("hello!\n"); while(1) ; } |