2024-08-05 00:59:07 +02:00
|
|
|
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");
|
2024-08-05 00:59:07 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
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");
|
2024-08-05 00:59:07 +02:00
|
|
|
}
|