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