内嵌汇编疑问
代码目的:定位光标。程序代码:
int main() { __asm__ __volatile__("movl $0x00, %eax\n\t"); __asm__ __volatile__("movl $0x00, %ebx\n\t"); __asm__ __volatile__("movl $0x00, %edx\n\t"); __asm__ __volatile__("movb $0x02, %ah\n\t"); __asm__ __volatile__("movb $0x00, %bh\n\t"); __asm__ __volatile__("movb $0x20, %dl\n\t"); __asm__ __volatile__("movb $0x10, %dh\n\t"); __asm__ __volatile__("int $0x10\n\t"); printf("!\n"); return 0; }
运行时接受到SIGN就退出了。定位在__asm__ __volatile__("int $0x10\n\t");