12 lines
172 B
C
12 lines
172 B
C
void print(char* s)
|
|
{
|
|
asm("mov %0, %%edx" :: "r" (s));
|
|
asm("int $0x21");
|
|
}
|
|
|
|
void input(char* buf)
|
|
{
|
|
asm("mov %0, %%edx" :: "r" (buf));
|
|
asm("int $0x22");
|
|
}
|