在MIPS,什么是HI和LO [英] In MIPS, what is HI and LO
问题描述
我在阅读有关MIPS分工和我发现,DIV
除以$ s来自$ T和存储
商将$ LO和余中
$ HI
块引用><一个href=\"http://www.mrc.uidaho.edu/mrc/people/jff/digital/MIPSir.html\">http://www.mrc.uidaho.edu/mrc/people/jff/digital/MIPSir.html
和维基说
HI和LO用于访问乘法器/除法的结果,由MFHI访问(移动从高)和MFLO命令
块引用><一个href=\"http://en.wikipedia.org/wiki/MIPS_architecture\">http://en.wikipedia.org/wiki/MIPS_architecture
是HI和LO注册?什么号码寄存器是他们?
解决方案
这些的特殊寄存器的用于乘法和除法的结果保存
他们是乘单位present和是32位的每个。更多信息这里。
I'm reading about division in MIPS and I've found that div
Divides $s by $t and stores the quotient in $LO and the remainder in $HI
http://www.mrc.uidaho.edu/mrc/people/jff/digital/MIPSir.html
And Wikipedia says
HI and LO are used to access the multiplier/divider results, accessed by the mfhi (move from high) and mflo commands.
http://en.wikipedia.org/wiki/MIPS_architecture
Are HI and LO registers? What number registers are they?
These are special registers used to store result of multiplication and division. They are not directly addressable. Their contents are accessed with special instruction mfhi and mflo
They are present in the Multiply Unit and are 32-bits each. More info here.
这篇关于在MIPS,什么是HI和LO的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!