xv6-65oo2/user1.c
2006-06-26 15:11:19 +00:00

31 lines
266 B
C

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)
;
}