os/libc/stdio.c

14 lines
222 B
C
Raw Permalink Normal View History

void print(char* s)
{
2024-08-10 01:19:50 +02:00
asm("mov %0, %%eax" :: "r" (s));
asm("mov $0, %edx");
asm("int $0x80");
}
void input(char* buf)
{
2024-08-10 01:19:50 +02:00
asm("mov %0, %%eax" :: "r" (buf));
asm("mov $1, %edx");
asm("int $0x80");
}