NutsOS/test/init/init.c
2020-04-17 17:44:23 +02:00

13 lines
188 B
C

void main()
{
char *msg1 = "NutsOS Init program\n";
while(*msg1 != 0)
{
asm("mov $1, %%eax; mov %0, %%ebx; int $0x40" :: "m"(msg1));
msg1++;
}
asm("mov $5, %eax; int $0x40");
}