内联汇编 [英] inline assembly
本文介绍了内联汇编的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我写了这段代码
int main(void){
asm(" movb $ 0x00,%ah \ n"
" movb $ 0x0d,%al \ n"
" int $ 0x10");
返回0;
}
使游标失望,但是当它以b
的方式解决程序崩溃时,消息内存无法写入。这个
代码出了什么问题?
i wrote this code
int main(void){
asm("movb $0x00,%ah \n"
"movb $0x0d,%al \n"
"int $0x10");
return 0;
}
to disappair the cursor but when it excutes the program craches with
the message "the memory can not be writen" what''s wrong with this
code?
推荐答案
0x00,%ah \ n"
" movb
0x00,%ah \n"
"movb
0x0d,%al \ n"
" int
0x0d,%al \n"
"int
0x10" );
返回0;
}
让游标失望,但是当它用程序来解决时,请使用
消息存储器不能被写入。这个
代码出了什么问题?
0x10");
return 0;
}
to disappair the cursor but when it excutes the program craches with
the message "the memory can not be writen" what''s wrong with this
code?
这篇关于内联汇编的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文