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