当前位置: 技术问答>linux和unix
嵌入式汇编中divl的用法?
来源: 互联网 发布时间:2015-09-20
本文导语: __asm__("divl %4":"=a" (block),"=d" (sec):"0" (block),"1" (0), "r" (hd_info[dev].sect)); __asm__("divl %4":"=a" (cyl),"=d" (head):"0" (block),"1" (0), "r" (hd_info[dev].head)); 大佬们给我说说看这个divl的具体用途,我查了好多地方也没有查到di...
__asm__("divl %4":"=a" (block),"=d" (sec):"0" (block),"1" (0),
"r" (hd_info[dev].sect));
__asm__("divl %4":"=a" (cyl),"=d" (head):"0" (block),"1" (0),
"r" (hd_info[dev].head));
大佬们给我说说看这个divl的具体用途,我查了好多地方也没有查到divl这个东西的用法。
在下先在这儿谢谢了!
"r" (hd_info[dev].sect));
__asm__("divl %4":"=a" (cyl),"=d" (head):"0" (block),"1" (0),
"r" (hd_info[dev].head));
大佬们给我说说看这个divl的具体用途,我查了好多地方也没有查到divl这个东西的用法。
在下先在这儿谢谢了!
|
Performs unsigned division.Divides the contents of the double-word contained in the
combined %edx:%eax registers by the value in the register or memory location specified.
The %eax register contains the resulting quotient,and the %edx register contains the resulting
remainder.If the quotient is too large to fit in %eax,it triggers a type 0 interrupt.
-------摘自PFGU,作者Jonathan Bartlett.
combined %edx:%eax registers by the value in the register or memory location specified.
The %eax register contains the resulting quotient,and the %edx register contains the resulting
remainder.If the quotient is too large to fit in %eax,it triggers a type 0 interrupt.
-------摘自PFGU,作者Jonathan Bartlett.