模组装 [英] modulus in assembly
本文介绍了模组装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我学习汇编语言。
I am learning assembly language.
在汇编中有模运算符?我知道我可以用找到其余公式数= *红利+除数余。
Is there modulus operator in assembly? I know I can find the remainder using the formula Number= Divident * Divisor + Remainder.
当我们使用DIV语法剩余部分存储在寄存器之一,我已经听说过吗?
I have heard when we use the DIV syntax the remainder is stored in one of the register?
编辑1:我使用英特尔的x86架构和发民它在Ubuntu
Edit 1 : I am using Intel x86 Architecture and devloping it on Ubuntu.
推荐答案
DIV指令返回AX商和在DX余,x86架构。
The DIV instruction returns the quotient in AX and the remainder in DX, on the x86 architecture.
这篇关于模组装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文