summaryrefslogtreecommitdiff
path: root/user1.c
blob: ea260a2c4b6faaf71bb3ec000c7ea80b6b8629ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
void
fork()
{
  asm("mov $1, %eax");
  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();
  puts("hello!\n");
  while(1)
    ;
}